home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / (Utilities) / CVNetConvert / cvnetcnv.c < prev    next >
MacBinary  |  1995-08-13  |  27.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: cvnetcnv.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Aug 13 19:54:55 1995, modified Sun Aug 13 19:54:55 1995, creator 'CWIE', type ASCII, 27570 bytes "cvnetcnv.c" , at 0x6c32 532 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 63 76 6e 65 74 63 | 6e 76 2e 63 00 00 00 00 |..cvnetc|nv.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 6b b2 00 | 00 02 14 ac 54 41 4f ac |.....k..|....TAO.|
|00000060| 54 41 4f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |TAO.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8b 51 00 00 |........|.....Q..|
|00000080| 2f 2a 20 63 76 6e 65 74 | 63 6e 76 2e 63 20 2d 20 |/* cvnet|cnv.c - |
|00000090| 43 56 4e 65 74 20 6d 61 | 73 74 65 72 20 6d 65 6d |CVNet ma|ster mem|
|000000a0| 62 65 72 20 6c 69 73 74 | 20 66 6f 72 6d 61 74 20 |ber list| format |
|000000b0| 63 6f 6e 76 65 72 74 65 | 72 2e 0d 20 20 20 54 68 |converte|r.. Th|
|000000c0| 69 73 20 70 72 6f 67 72 | 61 6d 20 63 6f 6e 76 65 |is progr|am conve|
|000000d0| 72 74 73 20 43 56 4e 65 | 74 20 6d 61 73 74 65 72 |rts CVNe|t master|
|000000e0| 20 6d 65 6d 62 65 72 20 | 6c 69 73 74 20 69 6e 74 | member |list int|
|000000f0| 6f 20 6f 74 68 65 72 20 | 64 61 74 61 20 66 6f 72 |o other |data for|
|00000100| 6d 61 74 73 0d 09 73 75 | 69 74 61 62 6c 65 20 66 |mats..su|itable f|
|00000110| 6f 72 20 69 6d 70 6f 72 | 74 69 6e 67 20 69 6e 74 |or impor|ting int|
|00000120| 6f 20 61 20 76 61 72 69 | 65 74 79 20 6f 66 20 64 |o a vari|ety of d|
|00000130| 61 74 61 62 61 73 65 20 | 70 72 6f 67 72 61 6d 73 |atabase |programs|
|00000140| 2e 0d 09 42 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |...By de|fining t|
|00000150| 68 65 20 64 65 73 69 72 | 65 64 20 6f 75 74 70 75 |he desir|ed outpu|
|00000160| 74 20 66 6f 72 6d 61 74 | 20 69 6e 20 66 69 6c 65 |t format| in file|
|00000170| 20 22 63 76 6e 65 74 63 | 6e 76 2e 66 6d 74 22 0d | "cvnetc|nv.fmt".|
|00000180| 09 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |.in the |current |
|00000190| 64 69 72 65 63 74 6f 72 | 79 2c 20 74 68 65 20 70 |director|y, the p|
|000001a0| 72 6f 67 72 61 6d 20 63 | 61 6e 20 62 65 20 63 75 |rogram c|an be cu|
|000001b0| 73 74 6f 6d 69 7a 65 64 | 20 66 6f 72 0d 09 6e 65 |stomized| for..ne|
|000001c0| 61 72 6c 79 20 61 6c 6c | 20 6b 69 6e 64 73 20 6f |arly all| kinds o|
|000001d0| 66 20 66 6f 72 6d 61 74 | 20 63 6f 6e 76 65 72 73 |f format| convers|
|000001e0| 69 6f 6e 20 6e 65 65 64 | 73 2e 20 20 46 6f 72 6d |ion need|s. Form|
|000001f0| 61 74 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |at speci|fication|
|00000200| 0d 09 66 69 6c 65 73 20 | 66 6f 72 20 73 6f 6d 65 |..files |for some|
|00000210| 20 63 6f 6d 6d 6f 6e 20 | 64 61 74 61 20 66 6f 72 | common |data for|
|00000220| 6d 61 74 73 20 61 72 65 | 20 69 6e 63 6c 75 64 65 |mats are| include|
|00000230| 64 20 69 6e 20 74 68 65 | 20 70 61 63 6b 61 67 65 |d in the| package|
|00000240| 2e 0d 0d 20 20 20 54 68 | 65 20 70 72 6f 67 72 61 |... Th|e progra|
|00000250| 6d 20 68 61 73 20 62 65 | 65 6e 20 74 65 73 74 65 |m has be|en teste|
|00000260| 64 20 6f 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |d on the| followi|
|00000270| 6e 67 20 6d 61 63 68 69 | 6e 65 73 20 61 6e 64 20 |ng machi|nes and |
|00000280| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00000290| 73 2e 0d 09 42 53 44 20 | 55 6e 69 78 20 34 2e 33 |s...BSD |Unix 4.3|
|000002a0| 0d 09 53 75 6e 20 34 20 | 28 53 75 6e 4f 53 20 52 |..Sun 4 |(SunOS R|
|000002b0| 65 6c 65 61 73 65 20 34 | 2e 31 29 0d 09 4e 65 58 |elease 4|.1)..NeX|
|000002c0| 54 20 28 4e 65 58 54 20 | 4f 53 20 52 65 6c 65 61 |T (NeXT |OS Relea|
|000002d0| 73 65 20 32 2e 31 29 0d | 09 49 42 4d 20 50 43 2f |se 2.1).|.IBM PC/|
|000002e0| 43 6c 6f 6e 65 73 20 28 | 4d 53 44 4f 53 20 35 2e |Clones (|MSDOS 5.|
|000002f0| 30 29 0d 09 09 4d 69 63 | 72 6f 73 6f 66 74 20 43 |0)...Mic|rosoft C|
|00000300| 20 28 76 35 2e 31 29 2c | 20 54 75 72 62 6f 20 43 | (v5.1),| Turbo C|
|00000310| 20 28 76 32 2e 30 29 2c | 20 54 75 72 62 6f 20 43 | (v2.0),| Turbo C|
|00000320| 2b 2b 20 28 76 31 2e 30 | 29 0d 09 4d 61 63 69 6e |++ (v1.0|)..Macin|
|00000330| 74 6f 73 68 20 28 53 79 | 73 74 65 6d 20 37 29 0d |tosh (Sy|stem 7).|
|00000340| 09 09 54 48 49 4e 4b 20 | 43 0d 0d 20 20 20 54 68 |..THINK |C.. Th|
|00000350| 69 73 20 70 72 6f 67 72 | 61 6d 20 69 73 20 6e 6f |is progr|am is no|
|00000360| 74 20 63 6f 70 79 72 69 | 67 68 74 65 64 2e 20 20 |t copyri|ghted. |
|00000370| 59 6f 75 20 61 72 65 20 | 66 72 65 65 20 74 6f 20 |You are |free to |
|00000380| 64 6f 20 77 68 61 74 65 | 76 65 72 0d 09 79 6f 75 |do whate|ver..you|
|00000390| 20 77 61 6e 74 20 77 69 | 74 68 20 69 74 2e 0d 0d | want wi|th it...|
|000003a0| 20 20 20 53 65 6e 64 20 | 63 6f 6d 6d 65 6e 74 73 | Send |comments|
|000003b0| 2c 20 62 75 67 20 66 69 | 78 65 73 2c 20 73 75 70 |, bug fi|xes, sup|
|000003c0| 70 6f 72 74 20 66 6f 72 | 20 6f 74 68 65 72 20 6d |port for| other m|
|000003d0| 61 63 68 69 6e 65 73 2f | 4f 53 2c 20 61 6e 64 20 |achines/|OS, and |
|000003e0| 61 64 64 69 74 6f 6e 61 | 6c 0d 09 66 6f 72 6d 61 |additona|l..forma|
|000003f0| 74 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |t specif|ication |
|00000400| 66 69 6c 65 73 20 74 6f | 3a 20 69 7a 75 6d 69 40 |files to|: izumi@|
|00000410| 70 69 6e 6f 6b 6f 2e 62 | 65 72 6b 65 6c 65 79 2e |pinoko.b|erkeley.|
|00000420| 65 64 75 2e 0d 0d 20 20 | 20 55 70 2d 74 6f 2d 64 |edu... | Up-to-d|
|00000430| 61 74 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ate vers|ion of t|
|00000440| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 61 6e 64 20 |his prog|ram and |
|00000450| 61 64 64 69 74 69 6f 6e | 61 6c 20 66 6f 72 6d 61 |addition|al forma|
|00000460| 74 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |t specif|ication |
|00000470| 66 69 6c 65 73 0d 09 77 | 69 6c 6c 20 62 65 20 61 |files..w|ill be a|
|00000480| 76 61 69 6c 61 62 6c 65 | 20 76 69 61 20 61 6e 6f |vailable| via ano|
|00000490| 6e 79 6d 6f 75 73 20 46 | 54 50 20 66 72 6f 6d 20 |nymous F|TP from |
|000004a0| 6f 75 72 20 6d 61 63 68 | 69 6e 65 0d 09 22 70 69 |our mach|ine.."pi|
|000004b0| 6e 6f 6b 6f 2e 62 65 72 | 6b 65 6c 65 79 2e 65 64 |noko.ber|keley.ed|
|000004c0| 75 22 20 69 6e 20 64 69 | 72 65 63 74 6f 72 79 3a |u" in di|rectory:|
|000004d0| 20 2f 70 75 62 2f 43 56 | 4e 65 74 2e 0d 0d 20 20 | /pub/CV|Net... |
|000004e0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|000004f0| 20 69 6e 20 6e 6f 20 77 | 61 79 20 67 75 61 72 61 | in no w|ay guara|
|00000500| 6e 74 65 65 64 20 74 6f | 20 64 6f 20 61 6e 79 74 |nteed to| do anyt|
|00000510| 68 69 6e 67 20 75 73 65 | 66 75 6c 20 66 6f 72 20 |hing use|ful for |
|00000520| 79 6f 75 2e 0d 20 20 20 | 4d 6f 72 65 20 6c 69 6b |you.. |More lik|
|00000530| 65 6c 79 2c 20 69 74 20 | 77 69 6c 6c 20 64 69 73 |ely, it |will dis|
|00000540| 74 72 61 63 74 20 79 6f | 75 72 20 61 74 74 65 6e |tract yo|ur atten|
|00000550| 74 69 6f 6e 20 66 72 6f | 6d 20 79 6f 75 72 20 72 |tion fro|m your r|
|00000560| 65 73 65 61 72 63 68 2e | 0d 0d 20 20 20 2d 2d 2d |esearch.|.. ---|
|00000570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005b0| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 55 73 61 67 |--------|. Usag|
|000005c0| 65 20 28 55 6e 69 78 2c | 20 50 43 29 3a 0d 09 63 |e (Unix,| PC):..c|
|000005d0| 76 6e 65 74 63 6e 76 20 | 69 6e 70 75 74 66 69 6c |vnetcnv |inputfil|
|000005e0| 65 20 6f 75 74 70 75 74 | 66 69 6c 65 20 5b 66 6f |e output|file [fo|
|000005f0| 72 6d 61 74 66 69 6c 65 | 5d 0d 0d 20 20 20 22 49 |rmatfile|].. "I|
|00000600| 6e 70 75 74 66 69 6c 65 | 22 20 69 73 20 61 20 66 |nputfile|" is a f|
|00000610| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ile cont|aining t|
|00000620| 68 65 20 43 56 4e 65 74 | 20 6d 61 73 74 65 72 20 |he CVNet| master |
|00000630| 6d 65 6d 62 65 72 20 6c | 69 73 74 20 61 73 20 6f |member l|ist as o|
|00000640| 62 74 61 69 6e 65 64 0d | 20 20 20 66 72 6f 6d 20 |btained.| from |
|00000650| 4c 69 73 74 73 65 72 76 | 40 76 6d 31 2e 79 6f 72 |Listserv|@vm1.yor|
|00000660| 6b 55 2e 63 61 20 62 79 | 20 73 65 6e 64 69 6e 67 |kU.ca by| sending|
|00000670| 20 69 74 20 61 20 6f 6e | 65 2d 6c 69 6e 65 20 6d | it a on|e-line m|
|00000680| 65 73 73 61 67 65 20 74 | 68 61 74 20 73 61 79 73 |essage t|hat says|
|00000690| 3a 0d 20 20 20 47 45 54 | 20 4d 45 4d 42 45 52 20 |:. GET| MEMBER |
|000006a0| 46 49 4c 45 0d 20 20 20 | 59 6f 75 20 64 6f 20 6e |FILE. |You do n|
|000006b0| 6f 74 20 68 61 76 65 20 | 74 6f 20 65 64 69 74 20 |ot have |to edit |
|000006c0| 6f 75 74 20 74 68 65 20 | 65 2d 6d 61 69 6c 20 68 |out the |e-mail h|
|000006d0| 65 61 64 65 72 20 61 6e | 64 20 6c 69 74 74 6c 65 |eader an|d little|
|000006e0| 20 6e 6f 74 65 73 20 61 | 74 20 74 68 65 0d 20 20 | notes a|t the. |
|000006f0| 20 62 65 67 69 6e 6e 69 | 6e 67 20 61 6e 64 20 65 | beginni|ng and e|
|00000700| 6e 64 20 6f 66 20 74 68 | 65 20 65 2d 6d 61 69 6c |nd of th|e e-mail|
|00000710| 20 74 65 78 74 2e 0d 0d | 20 20 20 22 4f 75 74 70 | text...| "Outp|
|00000720| 75 74 66 69 6c 65 22 20 | 77 69 6c 6c 20 63 6f 6e |utfile" |will con|
|00000730| 74 61 69 6e 20 74 68 65 | 20 72 65 73 75 6c 74 20 |tain the| result |
|00000740| 6f 66 20 63 6f 6e 76 65 | 72 73 69 6f 6e 20 70 65 |of conve|rsion pe|
|00000750| 72 66 6f 72 6d 65 64 20 | 70 65 72 0d 20 20 20 73 |rformed |per. s|
|00000760| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 69 6e 20 |pecifica|tion in |
|00000770| 66 69 6c 65 20 22 63 76 | 6e 65 74 63 6e 76 2e 66 |file "cv|netcnv.f|
|00000780| 6d 74 22 2e 0d 0d 20 20 | 20 22 46 6f 72 6d 61 74 |mt"... | "Format|
|00000790| 66 69 6c 65 22 20 6d 61 | 79 20 62 65 20 67 69 76 |file" ma|y be giv|
|000007a0| 65 6e 20 61 73 20 61 6e | 20 6f 70 74 69 6f 6e 20 |en as an| option |
|000007b0| 77 68 65 6e 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |when you| want to|
|000007c0| 20 6f 76 65 72 72 69 64 | 65 20 74 68 65 0d 20 20 | overrid|e the. |
|000007d0| 20 64 65 66 61 75 6c 74 | 20 75 73 65 20 6f 66 20 | default| use of |
|000007e0| 22 63 76 6e 65 74 63 6e | 76 2e 66 6d 74 22 2e 0d |"cvnetcn|v.fmt"..|
|000007f0| 0d 09 54 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |..The Ma|cintosh |
|00000800| 76 65 72 73 69 6f 6e 20 | 28 69 2e 65 2e 20 69 66 |version |(i.e. if|
|00000810| 20 4d 41 43 20 69 73 20 | 64 65 66 69 6e 65 64 29 | MAC is |defined)|
|00000820| 20 70 72 65 73 65 6e 74 | 73 20 73 74 61 6e 64 61 | present|s standa|
|00000830| 72 64 20 66 69 6c 65 0d | 09 64 69 61 6c 6f 67 73 |rd file.|.dialogs|
|00000840| 2c 20 61 73 6b 69 6e 67 | 20 79 6f 75 20 74 6f 20 |, asking| you to |
|00000850| 6f 70 65 6e 20 79 6f 75 | 72 20 43 56 4e 65 74 20 |open you|r CVNet |
|00000860| 6d 61 73 74 65 72 20 66 | 69 6c 65 2c 20 61 6e 64 |master f|ile, and|
|00000870| 20 68 6f 77 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | how you| want to|
|00000880| 0d 09 73 61 76 65 20 69 | 74 2e 20 59 6f 75 20 61 |..save i|t. You a|
|00000890| 72 65 20 61 73 6b 65 64 | 20 74 6f 20 6f 70 65 6e |re asked| to open|
|000008a0| 20 79 6f 75 72 20 6f 77 | 6e 20 66 6f 72 6d 61 74 | your ow|n format|
|000008b0| 20 66 69 6c 65 20 6f 6e | 6c 79 20 69 66 20 69 74 | file on|ly if it|
|000008c0| 20 63 61 6e 27 74 20 66 | 69 6e 64 0d 09 22 63 76 | can't f|ind.."cv|
|000008d0| 6e 65 74 63 6e 76 2e 66 | 6d 74 22 2e 0d 20 20 20 |netcnv.f|mt".. |
|000008e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000920| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 20 20 20 54 |--------|---. T|
|00000930| 6f 20 43 6f 6d 70 69 6c | 65 3a 0d 20 20 20 4e 4f |o Compil|e:. NO|
|00000940| 54 45 20 2d 2d 20 50 6c | 65 61 73 65 20 63 68 65 |TE -- Pl|ease che|
|00000950| 63 6b 20 69 66 20 74 68 | 65 20 61 70 70 72 6f 70 |ck if th|e approp|
|00000960| 72 69 61 74 65 20 6d 61 | 63 72 6f 20 69 73 20 64 |riate ma|cro is d|
|00000970| 65 66 69 6e 65 64 20 66 | 6f 72 0d 09 55 4e 49 58 |efined f|or..UNIX|
|00000980| 2c 20 4d 53 44 4f 53 2c | 20 4d 41 43 20 6f 72 20 |, MSDOS,| MAC or |
|00000990| 77 68 61 74 65 76 65 72 | 2e 20 20 54 68 65 73 65 |whatever|. These|
|000009a0| 20 6d 61 63 72 6f 73 20 | 73 68 6f 75 6c 64 20 62 | macros |should b|
|000009b0| 65 20 6d 75 74 75 61 6c | 6c 79 0d 09 65 78 63 6c |e mutual|ly..excl|
|000009c0| 75 73 69 76 65 2e 20 20 | 49 66 20 79 6f 75 20 64 |usive. |If you d|
|000009d0| 65 66 69 6e 65 20 4d 41 | 43 2c 20 63 6f 6d 6d 65 |efine MA|C, comme|
|000009e0| 6e 74 20 6f 75 74 20 74 | 68 65 20 6f 74 68 65 72 |nt out t|he other|
|000009f0| 73 2e 0d 0d 20 20 20 55 | 4e 49 58 0d 09 63 63 20 |s... U|NIX..cc |
|00000a00| 2d 6f 20 63 76 6e 65 74 | 63 6e 76 20 63 76 6e 65 |-o cvnet|cnv cvne|
|00000a10| 74 63 6e 76 2e 63 0d 0d | 20 20 20 4d 53 44 4f 53 |tcnv.c..| MSDOS|
|00000a20| 20 28 55 6e 63 6f 6d 6d | 65 6e 74 20 23 64 65 66 | (Uncomm|ent #def|
|00000a30| 69 6e 65 20 4d 53 44 4f | 53 20 62 65 6c 6f 77 2e |ine MSDO|S below.|
|00000a40| 20 53 61 6d 65 20 66 6f | 72 20 54 75 72 62 6f 20 | Same fo|r Turbo |
|00000a50| 43 2b 2b 29 0d 09 63 6c | 20 63 76 6e 65 74 63 6e |C++)..cl| cvnetcn|
|00000a60| 76 2e 63 20 28 4d 53 43 | 29 0d 09 74 63 63 20 63 |v.c (MSC|)..tcc c|
|00000a70| 76 6e 65 74 63 6e 76 2e | 63 20 28 54 75 72 62 6f |vnetcnv.|c (Turbo|
|00000a80| 20 43 29 0d 0d 20 20 20 | 4d 61 63 69 6e 74 6f 73 | C).. |Macintos|
|00000a90| 68 20 54 48 49 4e 4b 20 | 43 0d 20 20 20 09 20 55 |h THINK |C. . U|
|00000aa0| 6e 63 6f 6d 6d 65 6e 74 | 20 23 64 65 66 69 6e 65 |ncomment| #define|
|00000ab0| 20 4d 41 43 20 62 65 6c | 6f 77 2e 20 55 73 65 20 | MAC bel|ow. Use |
|00000ac0| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 70 72 6f |the supp|lied pro|
|00000ad0| 6a 65 63 74 20 66 69 6c | 65 20 63 76 6e 65 74 63 |ject fil|e cvnetc|
|00000ae0| 6e 76 2e b9 2e 20 49 74 | 0d 20 20 20 09 20 77 69 |nv... It|. . wi|
|00000af0| 6c 6c 20 63 72 65 61 74 | 65 20 61 6e 20 61 70 70 |ll creat|e an app|
|00000b00| 6c 69 63 61 74 69 6f 6e | 20 63 61 6c 6c 65 64 20 |lication| called |
|00000b10| 43 56 4e 65 74 43 6f 6e | 76 65 72 74 2c 20 77 68 |CVNetCon|vert, wh|
|00000b20| 69 63 68 20 69 73 20 61 | 20 73 74 61 6e 64 2d 61 |ich is a| stand-a|
|00000b30| 6c 6f 6e 65 0d 20 20 20 | 09 20 4d 61 63 69 6e 74 |lone. |. Macint|
|00000b40| 6f 73 68 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |osh appl|ication,|
|00000b50| 20 73 75 69 74 61 62 6c | 65 20 66 6f 72 20 64 6f | suitabl|e for do|
|00000b60| 75 62 6c 65 20 63 6c 69 | 63 6b 69 6e 67 2e 20 43 |uble cli|cking. C|
|00000b70| 56 4e 65 74 43 6f 6e 76 | 65 72 74 0d 20 20 20 09 |VNetConv|ert. .|
|00000b80| 20 73 68 6f 75 6c 64 20 | 77 6f 72 6b 20 66 69 6e | should |work fin|
|00000b90| 65 20 6f 6e 20 61 6c 6c | 20 4d 61 63 73 20 61 6e |e on all| Macs an|
|00000ba0| 64 20 53 79 73 74 65 6d | 73 20 36 20 61 6e 64 20 |d System|s 6 and |
|00000bb0| 37 2c 20 62 75 74 20 77 | 61 73 20 6f 6e 6c 79 20 |7, but w|as only |
|00000bc0| 74 65 73 74 65 64 20 6f | 6e 20 0d 20 20 20 09 20 |tested o|n . . |
|00000bd0| 4d 61 63 20 49 49 63 69 | 20 77 69 74 68 20 53 79 |Mac IIci| with Sy|
|00000be0| 73 74 65 6d 20 37 2e 20 | 54 68 65 20 6f 6e 6c 79 |stem 7. |The only|
|00000bf0| 20 70 6f 72 74 61 62 69 | 6c 69 74 79 20 70 72 6f | portabi|lity pro|
|00000c00| 62 6c 65 6d 20 49 20 63 | 61 6e 20 63 6f 6e 63 65 |blem I c|an conce|
|00000c10| 69 76 65 20 6f 66 20 69 | 73 0d 20 20 20 09 20 74 |ive of i|s. . t|
|00000c20| 68 65 20 6e 65 65 64 20 | 66 6f 72 20 41 4c 52 54 |he need |for ALRT|
|00000c30| 20 72 65 73 6f 75 72 63 | 65 20 2d 31 36 34 30 35 | resourc|e -16405|
|00000c40| 2c 20 77 68 69 63 68 20 | 69 73 20 70 72 65 73 65 |, which |is prese|
|00000c50| 6e 74 20 69 6e 20 53 79 | 73 74 65 6d 73 20 36 2e |nt in Sy|stems 6.|
|00000c60| 30 37 20 61 6e 64 20 37 | 2e 0d 20 20 20 2d 2d 2d |07 and 7|.. ---|
|00000c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ca0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 54 6f 20 50 |--------|. To P|
|00000cc0| 72 65 70 61 72 65 20 43 | 6f 6e 76 65 72 73 69 6f |repare C|onversio|
|00000cd0| 6e 20 46 6f 72 6d 61 74 | 20 53 70 65 63 69 66 69 |n Format| Specifi|
|00000ce0| 63 61 74 69 6f 6e 20 46 | 69 6c 65 3a 0d 0d 20 20 |cation F|ile:.. |
|00000cf0| 20 54 68 65 20 66 69 72 | 73 74 20 6c 69 6e 65 20 | The fir|st line |
|00000d00| 6f 66 20 74 68 65 20 66 | 6f 72 6d 61 74 20 66 69 |of the f|ormat fi|
|00000d10| 6c 65 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 |le speci|fies the|
|00000d20| 20 72 65 63 6f 72 64 20 | 66 6f 72 6d 61 74 2e 20 | record |format. |
|00000d30| 59 6f 75 20 6d 61 79 20 | 75 73 65 20 0d 20 20 20 |You may |use . |
|00000d40| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 76 61 |the foll|owing va|
|00000d50| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 2e 20 41 6c |riable n|ames. Al|
|00000d60| 6c 20 6f 74 68 65 72 20 | 63 68 61 72 61 63 74 65 |l other |characte|
|00000d70| 72 73 20 6e 6f 74 20 6c | 69 73 74 65 64 20 62 65 |rs not l|isted be|
|00000d80| 6c 6f 77 20 77 69 6c 6c | 20 0d 20 20 20 62 65 20 |low will| . be |
|00000d90| 77 72 69 74 74 65 6e 20 | 6f 75 74 20 74 6f 20 74 |written |out to t|
|00000da0| 68 65 20 6f 75 74 70 75 | 74 20 61 73 20 69 73 2e |he outpu|t as is.|
|00000db0| 0d 0d 09 20 20 20 20 24 | 4c 20 2d 2d 20 6c 61 73 |... $|L -- las|
|00000dc0| 74 20 6e 61 6d 65 0d 09 | 20 20 20 20 24 46 20 2d |t name..| $F -|
|00000dd0| 2d 20 66 69 72 73 74 20 | 6e 61 6d 65 20 26 20 69 |- first |name & i|
|00000de0| 6e 69 74 69 61 6c 0d 09 | 20 20 20 20 24 49 20 2d |nitial..| $I -|
|00000df0| 2d 20 69 6e 73 74 69 74 | 75 74 69 6f 6e 61 6c 20 |- instit|utional |
|00000e00| 61 66 66 69 6c 69 61 74 | 69 6f 6e 0d 09 20 20 20 |affiliat|ion.. |
|00000e10| 20 24 41 20 2d 2d 20 61 | 64 64 72 65 73 73 20 28 | $A -- a|ddress (|
|00000e20| 65 2d 6d 61 69 6c 29 0d | 09 20 20 20 20 24 54 20 |e-mail).|. $T |
|00000e30| 2d 2d 20 54 41 42 20 63 | 68 61 72 61 63 74 65 72 |-- TAB c|haracter|
|00000e40| 0d 09 20 20 20 20 24 4e | 20 2d 2d 20 4e 45 57 20 |.. $N| -- NEW |
|00000e50| 4c 49 4e 45 20 63 68 61 | 72 61 63 74 65 72 20 28 |LINE cha|racter (|
|00000e60| 4c 46 20 66 6f 72 20 55 | 4e 49 58 2c 20 43 52 4c |LF for U|NIX, CRL|
|00000e70| 46 20 66 6f 72 20 4d 53 | 44 4f 53 29 0d 09 20 20 |F for MS|DOS).. |
|00000e80| 20 20 24 43 6e 6e 20 2d | 2d 20 61 64 76 61 6e 63 | $Cnn -|- advanc|
|00000e90| 65 20 74 6f 20 63 6f 6c | 75 6d 6e 20 6e 6e 20 69 |e to col|umn nn i|
|00000ea0| 66 20 70 6f 73 73 69 62 | 6c 65 20 28 69 66 20 6e |f possib|le (if n|
|00000eb0| 6f 74 20 70 61 73 74 20 | 69 74 20 61 6c 72 65 61 |ot past |it alrea|
|00000ec0| 64 79 29 0d 0d 20 20 20 | 20 46 6f 72 20 65 78 61 |dy).. | For exa|
|00000ed0| 6d 70 6c 65 2c 20 74 68 | 69 73 20 66 6f 72 6d 61 |mple, th|is forma|
|00000ee0| 74 20 6c 69 6e 65 0d 09 | 20 20 20 20 24 4c 24 43 |t line..| $L$C|
|00000ef0| 31 32 24 46 24 43 32 32 | 28 24 49 29 24 43 34 33 |12$F$C22|($I)$C43|
|00000f00| 3c 24 41 3e 2c 0d 20 20 | 20 20 70 72 6f 64 75 63 |<$A>,. | produc|
|00000f10| 65 73 20 61 20 66 69 6c | 65 20 73 75 69 74 61 62 |es a fil|e suitab|
|00000f20| 6c 65 20 66 6f 72 20 55 | 4e 49 58 20 22 6d 61 69 |le for U|NIX "mai|
|00000f30| 6c 2f 73 65 6e 64 6d 61 | 69 6c 22 3a 0d 09 20 20 |l/sendma|il":.. |
|00000f40| 20 20 41 62 72 61 6d 6f | 76 20 20 20 20 49 73 72 | Abramo|v Isr|
|00000f50| 61 65 6c 20 20 20 20 28 | 42 72 6f 6f 6b 6c 79 6e |ael (|Brooklyn|
|00000f60| 20 43 6f 6c 6c 65 67 65 | 29 20 20 20 3c 69 78 72 | College|) <ixr|
|00000f70| 62 63 40 63 75 6e 79 76 | 6d 2e 62 69 74 6e 65 74 |bc@cunyv|m.bitnet|
|00000f80| 3e 2c 0d 0d 20 20 20 20 | 5b 23 23 23 23 20 57 61 |>,.. |[#### Wa|
|00000f90| 72 6e 69 6e 67 2e 20 20 | 44 6f 6e 27 74 20 73 65 |rning. |Don't se|
|00000fa0| 6e 64 20 45 2d 6d 61 69 | 6c 73 20 74 6f 20 65 76 |nd E-mai|ls to ev|
|00000fb0| 65 72 79 6f 6e 65 20 6f | 6e 20 43 56 4e 65 74 20 |eryone o|n CVNet |
|00000fc0| 75 73 69 6e 67 20 74 68 | 65 20 61 6c 69 61 73 20 |using th|e alias |
|00000fd0| 66 69 6c 65 0d 20 20 20 | 20 20 79 6f 75 20 63 61 |file. | you ca|
|00000fe0| 6e 20 6f 62 74 61 69 6e | 20 74 68 69 73 20 77 61 |n obtain| this wa|
|00000ff0| 79 2e 20 20 54 68 61 74 | 20 69 73 20 41 42 55 53 |y. That| is ABUS|
|00001000| 45 20 6f 66 20 74 68 65 | 20 64 61 74 61 62 61 73 |E of the| databas|
|00001010| 65 2e 5d 0d 0d 20 20 20 | 20 4f 6e 20 74 68 65 20 |e.].. | On the |
|00001020| 73 65 63 6f 6e 64 20 6c | 69 6e 65 2c 20 61 20 6c |second l|ine, a l|
|00001030| 69 6e 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 77 69 |ine begi|nning wi|
|00001040| 74 68 20 24 4d 20 6d 61 | 79 20 61 70 70 65 61 72 |th $M ma|y appear|
|00001050| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 2e 20 49 66 20 | optiona|lly. If |
|00001060| 70 72 65 73 65 6e 74 2c | 0d 20 20 20 20 69 74 20 |present,|. it |
|00001070| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6f 75 |specifie|s the ou|
|00001080| 74 70 75 74 20 66 69 6c | 65 27 73 20 4d 61 63 69 |tput fil|e's Maci|
|00001090| 6e 74 6f 73 68 20 66 69 | 6c 65 20 74 79 70 65 20 |ntosh fi|le type |
|000010a0| 61 6e 64 20 63 72 65 61 | 74 6f 72 20 28 69 67 6e |and crea|tor (ign|
|000010b0| 6f 72 65 64 20 75 6e 6c | 65 73 73 20 0d 20 20 20 |ored unl|ess . |
|000010c0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 69 73 20 | the pro|gram is |
|000010d0| 72 75 6e 6e 69 6e 67 20 | 6f 6e 20 61 20 4d 61 63 |running |on a Mac|
|000010e0| 29 2e 20 20 49 66 20 6e | 6f 74 20 70 72 65 73 65 |). If n|ot prese|
|000010f0| 6e 74 2c 20 74 68 65 20 | 66 69 6c 65 20 74 79 70 |nt, the |file typ|
|00001100| 65 2f 63 72 65 61 74 6f | 72 0d 20 20 20 20 77 69 |e/creato|r. wi|
|00001110| 6c 6c 20 62 65 20 73 65 | 74 20 74 6f 20 74 68 61 |ll be se|t to tha|
|00001120| 74 20 6f 66 20 4d 61 63 | 57 72 69 74 65 20 74 65 |t of Mac|Write te|
|00001130| 78 74 20 66 69 6c 65 2e | 0d 20 20 20 20 0d 20 20 |xt file.|. . |
|00001140| 20 20 41 66 74 65 72 20 | 74 68 65 20 24 4d 20 6c | After |the $M l|
|00001150| 69 6e 65 2c 20 6f 72 20 | 6f 6e 20 74 68 65 20 73 |ine, or |on the s|
|00001160| 65 63 6f 6e 64 20 6c 69 | 6e 65 20 69 66 20 24 4d |econd li|ne if $M|
|00001170| 20 6c 69 6e 65 20 64 6f | 65 73 20 6e 6f 74 20 61 | line do|es not a|
|00001180| 70 70 65 61 72 2c 0d 20 | 20 20 20 61 20 6c 69 6e |ppear,. | a lin|
|00001190| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |e beginn|ing with|
|000011a0| 20 24 50 20 6d 61 79 20 | 61 70 70 65 61 72 20 6f | $P may |appear o|
|000011b0| 70 74 69 6f 6e 61 6c 6c | 79 20 28 77 68 69 63 68 |ptionall|y (which|
|000011c0| 20 6d 61 79 20 63 6f 6e | 74 69 6e 75 65 20 66 6f | may con|tinue fo|
|000011d0| 72 0d 20 20 20 20 6d 75 | 6c 74 69 70 6c 65 20 6c |r. mu|ltiple l|
|000011e0| 69 6e 65 73 29 2e 20 20 | 49 66 20 70 72 65 73 65 |ines). |If prese|
|000011f0| 6e 74 2c 20 69 74 20 77 | 69 6c 6c 20 73 70 65 63 |nt, it w|ill spec|
|00001200| 69 66 79 20 74 68 65 20 | 70 72 6f 6c 6f 67 2c 20 |ify the |prolog, |
|00001210| 74 65 78 74 20 70 6c 61 | 63 65 64 0d 20 20 20 20 |text pla|ced. |
|00001220| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00001230| 20 6f 66 20 74 68 65 20 | 6f 75 74 70 75 74 20 66 | of the |output f|
|00001240| 69 6c 65 20 62 65 66 6f | 72 65 20 61 6c 6c 20 61 |ile befo|re all a|
|00001250| 64 64 72 65 73 73 20 72 | 65 63 6f 72 64 73 2e 0d |ddress r|ecords..|
|00001260| 20 20 20 20 41 66 74 65 | 72 20 74 68 69 73 2c 20 | Afte|r this, |
|00001270| 61 20 6c 69 6e 65 20 62 | 65 67 69 6e 6e 69 6e 67 |a line b|eginning|
|00001280| 20 77 69 74 68 20 24 45 | 20 6d 61 79 20 61 70 70 | with $E| may app|
|00001290| 65 61 72 20 6f 70 74 69 | 6f 6e 61 6c 6c 79 20 28 |ear opti|onally (|
|000012a0| 77 68 69 63 68 0d 20 20 | 20 20 6d 61 79 20 63 6f |which. | may co|
|000012b0| 6e 74 69 6e 75 65 20 66 | 6f 72 20 6d 75 6c 74 69 |ntinue f|or multi|
|000012c0| 70 6c 65 20 6c 69 6e 65 | 73 29 2e 20 20 49 66 20 |ple line|s). If |
|000012d0| 70 72 65 73 65 6e 74 2c | 20 69 74 20 77 69 6c 6c |present,| it will|
|000012e0| 20 73 70 65 63 69 66 79 | 20 74 68 65 0d 20 20 20 | specify| the. |
|000012f0| 20 65 70 69 6c 6f 67 2c | 20 74 65 78 74 20 70 6c | epilog,| text pl|
|00001300| 61 63 65 64 20 61 74 20 | 74 68 65 20 65 6e 64 20 |aced at |the end |
|00001310| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 66 69 |of the o|utput fi|
|00001320| 6c 65 20 61 66 74 65 72 | 20 61 6c 6c 0d 20 20 20 |le after| all. |
|00001330| 20 61 64 64 72 65 73 73 | 20 72 65 63 6f 72 64 73 | address| records|
|00001340| 2e 20 20 0d 20 20 20 20 | 0d 20 20 20 20 24 4d 2c |. . |. $M,|
|00001350| 20 24 50 2c 20 24 45 20 | 6d 75 73 74 20 61 70 70 | $P, $E |must app|
|00001360| 65 61 72 20 69 6e 20 74 | 68 61 74 20 6f 72 64 65 |ear in t|hat orde|
|00001370| 72 20 69 66 20 61 6c 6c | 20 74 68 72 65 65 20 61 |r if all| three a|
|00001380| 72 65 20 70 72 65 73 65 | 6e 74 2e 0d 20 20 20 20 |re prese|nt.. |
|00001390| 4e 6f 74 20 61 6c 6c 20 | 6f 66 20 74 68 65 6d 20 |Not all |of them |
|000013a0| 68 61 76 65 20 74 6f 20 | 62 65 20 70 72 65 73 65 |have to |be prese|
|000013b0| 6e 74 2c 20 65 2e 67 2e | 2c 20 69 66 20 6e 6f 20 |nt, e.g.|, if no |
|000013c0| 70 72 6f 6c 6f 67 20 69 | 73 20 6e 65 65 64 65 64 |prolog i|s needed|
|000013d0| 0d 20 20 20 20 62 75 74 | 20 65 70 69 6c 6f 67 20 |. but| epilog |
|000013e0| 69 73 20 72 65 71 75 69 | 72 65 64 2c 20 24 4d 2c |is requi|red, $M,|
|000013f0| 20 24 45 20 6c 69 6e 65 | 73 20 73 68 6f 75 6c 64 | $E line|s should|
|00001400| 20 62 65 20 65 6e 74 65 | 72 65 64 20 69 6e 20 74 | be ente|red in t|
|00001410| 68 61 74 20 6f 72 64 65 | 72 2e 0d 20 20 20 20 0d |hat orde|r.. .|
|00001420| 20 20 20 20 54 68 65 72 | 65 20 6d 75 73 74 20 6e | Ther|e must n|
|00001430| 6f 74 20 62 65 20 61 6e | 79 20 62 6c 61 6e 6b 20 |ot be an|y blank |
|00001440| 6f 72 20 65 78 74 72 61 | 6e 65 6f 75 73 20 6c 69 |or extra|neous li|
|00001450| 6e 65 73 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |nes betw|een the |
|00001460| 66 69 72 73 74 20 6c 69 | 6e 65 0d 20 20 20 20 61 |first li|ne. a|
|00001470| 6e 64 20 24 4d 2e 20 20 | 53 69 6d 69 6c 61 72 6c |nd $M. |Similarl|
|00001480| 79 2c 20 6e 6f 20 62 6c | 61 6e 6b 20 6f 72 20 65 |y, no bl|ank or e|
|00001490| 78 74 72 61 6e 65 6f 75 | 73 20 6c 69 6e 65 73 20 |xtraneou|s lines |
|000014a0| 73 68 6f 75 6c 64 20 62 | 65 20 70 72 65 73 65 6e |should b|e presen|
|000014b0| 74 0d 20 20 20 20 62 65 | 74 77 65 65 6e 20 24 4d |t. be|tween $M|
|000014c0| 2c 20 24 50 2c 20 24 45 | 20 73 70 65 63 69 66 69 |, $P, $E| specifi|
|000014d0| 63 61 74 69 6f 6e 73 2e | 20 20 48 6f 77 65 76 65 |cations.| Howeve|
|000014e0| 72 2c 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 20 61 |r, blank| lines a|
|000014f0| 72 65 20 61 6c 6c 6f 77 | 65 64 0d 20 20 20 20 77 |re allow|ed. w|
|00001500| 69 74 68 69 6e 20 74 68 | 65 20 71 75 6f 74 65 64 |ithin th|e quoted|
|00001510| 20 74 65 78 74 20 66 6f | 72 20 74 68 65 20 70 72 | text fo|r the pr|
|00001520| 6f 6c 6f 67 20 61 6e 64 | 20 65 70 69 6c 6f 67 2e |olog and| epilog.|
|00001530| 20 0d 20 20 20 20 0d 20 | 20 20 20 24 4d 2c 20 24 | . . | $M, $|
|00001540| 50 2c 20 24 45 20 6d 75 | 73 74 20 61 70 70 65 61 |P, $E mu|st appea|
|00001550| 72 20 61 74 20 63 6f 6c | 75 6d 6e 20 31 20 77 69 |r at col|umn 1 wi|
|00001560| 74 68 6f 75 74 20 61 6e | 79 20 6c 65 61 64 69 6e |thout an|y leadin|
|00001570| 67 20 73 70 61 63 65 73 | 2e 0d 0d 20 20 20 20 0d |g spaces|... .|
|00001580| 09 24 4d 74 74 74 74 63 | 63 63 63 20 2d 2d 20 73 |.$Mttttc|ccc -- s|
|00001590| 70 65 63 69 66 79 20 74 | 68 65 20 6f 75 74 70 75 |pecify t|he outpu|
|000015a0| 74 20 66 69 6c 65 27 73 | 20 66 6f 75 72 2d 63 68 |t file's| four-ch|
|000015b0| 61 72 61 63 74 65 72 20 | 4d 61 63 69 6e 74 6f 73 |aracter |Macintos|
|000015c0| 68 20 74 79 70 65 20 0d | 09 09 28 65 2e 67 2e 20 |h type .|..(e.g. |
|000015d0| 54 45 58 54 29 20 61 6e | 64 20 63 72 65 61 74 6f |TEXT) an|d creato|
|000015e0| 72 20 28 65 2e 67 2e 20 | 4d 41 43 41 29 2e 20 54 |r (e.g. |MACA). T|
|000015f0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 6c |he rest |of the l|
|00001600| 69 6e 65 20 69 73 20 69 | 67 6e 6f 72 65 64 2e 0d |ine is i|gnored..|
|00001610| 09 24 50 5e 70 72 6f 6c | 6f 67 20 74 65 78 74 5e |.$P^prol|og text^|
|00001620| 20 2d 2d 20 50 6c 61 63 | 65 20 74 68 65 20 74 65 | -- Plac|e the te|
|00001630| 78 74 20 62 65 74 77 65 | 65 6e 20 71 75 6f 74 65 |xt betwe|en quote|
|00001640| 20 63 68 61 72 73 20 61 | 74 20 74 68 65 20 62 65 | chars a|t the be|
|00001650| 67 69 6e 6e 69 6e 67 20 | 6f 66 0d 09 09 74 68 65 |ginning |of...the|
|00001660| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 2e 0d 09 24 | output |file...$|
|00001670| 45 5e 65 70 69 6c 6f 67 | 20 74 65 78 74 5e 20 2d |E^epilog| text^ -|
|00001680| 2d 20 50 6c 61 63 65 20 | 74 68 65 20 74 65 78 74 |- Place |the text|
|00001690| 20 62 65 74 77 65 65 6e | 20 71 75 6f 74 65 20 63 | between| quote c|
|000016a0| 68 61 72 73 20 61 74 20 | 74 68 65 20 65 6e 64 20 |hars at |the end |
|000016b0| 6f 66 20 74 68 65 0d 09 | 09 6f 75 74 70 75 74 20 |of the..|.output |
|000016c0| 66 69 6c 65 2e 0d 20 20 | 20 20 0d 20 20 20 20 54 |file.. | . T|
|000016d0| 68 65 20 70 72 6f 6c 6f | 67 20 61 6e 64 20 65 70 |he prolo|g and ep|
|000016e0| 69 6c 6f 67 20 6d 61 79 | 20 65 78 74 65 6e 64 20 |ilog may| extend |
|000016f0| 6f 76 65 72 20 6d 61 6e | 79 20 6c 69 6e 65 73 2e |over man|y lines.|
|00001700| 20 54 68 65 20 63 68 61 | 72 61 63 74 65 72 20 74 | The cha|racter t|
|00001710| 68 61 74 20 0d 20 20 20 | 20 69 6d 6d 65 64 69 61 |hat . | immedia|
|00001720| 74 65 6c 79 20 66 6f 6c | 6c 6f 77 73 20 24 50 20 |tely fol|lows $P |
|00001730| 61 6e 64 20 24 45 20 69 | 73 20 75 73 65 64 20 61 |and $E i|s used a|
|00001740| 73 20 74 68 65 20 22 71 | 75 6f 74 65 22 20 63 68 |s the "q|uote" ch|
|00001750| 61 72 61 63 74 65 72 20 | 74 6f 20 0d 20 20 20 20 |aracter |to . |
|00001760| 6d 61 72 6b 20 74 68 65 | 20 72 61 6e 67 65 20 6f |mark the| range o|
|00001770| 66 20 74 65 78 74 20 66 | 6f 72 20 70 72 6f 6c 6f |f text f|or prolo|
|00001780| 67 20 61 6e 64 20 65 70 | 69 6c 6f 67 2e 20 20 54 |g and ep|ilog. T|
|00001790| 68 65 20 71 75 6f 74 65 | 20 63 68 61 72 20 6d 61 |he quote| char ma|
|000017a0| 79 20 62 65 20 61 6e 79 | 20 0d 20 20 20 20 70 72 |y be any| . pr|
|000017b0| 69 6e 74 61 62 6c 65 20 | 63 68 61 72 61 63 74 65 |intable |characte|
|000017c0| 72 20 74 68 61 74 20 69 | 73 20 6e 6f 74 20 75 73 |r that i|s not us|
|000017d0| 65 64 20 69 6e 20 74 68 | 65 20 71 75 6f 74 65 64 |ed in th|e quoted|
|000017e0| 20 74 65 78 74 20 66 6f | 72 20 74 68 65 20 0d 20 | text fo|r the . |
|000017f0| 20 20 20 70 72 6f 6c 6f | 67 20 61 6e 64 20 65 70 | prolo|g and ep|
|00001800| 69 6c 6f 67 2e 20 54 68 | 65 20 72 65 73 74 20 6f |ilog. Th|e rest o|
|00001810| 66 20 74 68 65 20 6c 69 | 6e 65 20 61 66 74 65 72 |f the li|ne after|
|00001820| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 74 69 6e 67 | the ter|minating|
|00001830| 20 71 75 6f 74 65 20 69 | 73 20 0d 20 20 20 20 69 | quote i|s . i|
|00001840| 67 6e 6f 72 65 64 2e 20 | 41 66 74 65 72 20 74 68 |gnored. |After th|
|00001850| 65 20 6f 70 74 69 6f 6e | 61 6c 20 24 4d 2c 20 24 |e option|al $M, $|
|00001860| 50 2c 20 61 6e 64 20 24 | 45 20 74 68 65 20 72 65 |P, and $|E the re|
|00001870| 73 74 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 69 |st of th|e file i|
|00001880| 73 20 69 67 6e 6f 72 65 | 64 2e 0d 20 20 20 20 0d |s ignore|d.. .|
|00001890| 20 20 20 20 54 68 65 20 | 51 75 69 63 6b 44 45 58 | The |QuickDEX|
|000018a0| 2e 66 6d 74 20 66 6f 72 | 6d 61 74 20 66 69 6c 65 |.fmt for|mat file|
|000018b0| 20 70 72 6f 64 75 63 65 | 73 20 61 20 4d 61 63 69 | produce|s a Maci|
|000018c0| 6e 74 6f 73 68 20 66 69 | 6c 65 0d 20 20 20 20 73 |ntosh fi|le. s|
|000018d0| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 75 73 65 20 |uitable |for use |
|000018e0| 77 69 74 68 20 74 68 65 | 20 52 6f 6c 6f 64 65 78 |with the| Rolodex|
|000018f0| 2d 6c 69 6b 65 20 70 72 | 6f 67 72 61 6d 20 63 61 |-like pr|ogram ca|
|00001900| 6c 6c 65 64 20 51 75 69 | 63 6b 44 45 58 3a 0d 09 |lled Qui|ckDEX:..|
|00001910| 20 20 20 20 2a 24 4e 4e | 24 46 20 24 4c 24 4e 24 | *$NN|$F $L$N$|
|00001920| 49 24 4e 24 41 0d 09 20 | 20 20 20 24 4d 54 45 58 |I$N$A.. | $MTEX|
|00001930| 54 51 44 45 78 0d 09 20 | 20 20 20 24 50 5e 0d 09 |TQDEx.. | $P^..|
|00001940| 20 20 20 20 2a 0d 09 20 | 20 20 20 5e 0d 09 20 20 | *.. | ^.. |
|00001950| 20 20 24 45 5e 2a 0d 09 | 20 20 20 20 2a 0d 09 20 | $E^*..| *.. |
|00001960| 20 20 20 5e 0d 20 20 20 | 20 54 68 65 20 66 69 72 | ^. | The fir|
|00001970| 73 74 20 6c 69 6e 65 20 | 73 70 65 63 69 66 69 65 |st line |specifie|
|00001980| 73 20 74 68 65 20 72 65 | 63 6f 72 64 20 66 6f 72 |s the re|cord for|
|00001990| 6d 61 74 2c 20 77 68 69 | 63 68 20 70 72 6f 64 75 |mat, whi|ch produ|
|000019a0| 63 65 73 20 72 65 63 6f | 72 64 73 20 6c 69 6b 65 |ces reco|rds like|
|000019b0| 20 74 68 69 73 3a 0d 09 | 20 20 20 20 2a 0d 09 20 | this:..| *.. |
|000019c0| 20 20 20 4e 49 73 72 61 | 65 6c 20 41 62 72 61 6d | NIsra|el Abram|
|000019d0| 6f 76 0d 09 20 20 20 20 | 42 72 6f 6f 6b 6c 79 6e |ov.. |Brooklyn|
|000019e0| 20 43 6f 6c 6c 65 67 65 | 0d 09 20 20 20 20 69 78 | College|.. ix|
|000019f0| 72 62 63 40 63 75 6e 79 | 76 6d 2e 62 69 74 6e 65 |rbc@cuny|vm.bitne|
|00001a00| 74 0d 20 20 20 20 54 68 | 65 20 6c 69 6e 65 20 62 |t. Th|e line b|
|00001a10| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 24 4d |eginning| with $M|
|00001a20| 20 73 70 65 63 69 66 69 | 65 73 20 74 68 65 20 4d | specifi|es the M|
|00001a30| 61 63 69 6e 74 6f 73 68 | 20 66 69 6c 65 20 74 79 |acintosh| file ty|
|00001a40| 70 65 20 28 54 45 58 54 | 29 20 61 6e 64 20 63 72 |pe (TEXT|) and cr|
|00001a50| 65 61 74 6f 72 0d 20 20 | 20 20 28 51 44 45 78 29 |eator. | (QDEx)|
|00001a60| 20 73 6f 20 74 68 61 74 | 20 51 75 69 63 6b 44 45 | so that| QuickDE|
|00001a70| 58 20 77 69 6c 6c 20 72 | 65 63 6f 67 6e 69 7a 65 |X will r|ecognize|
|00001a80| 20 69 74 2e 20 54 68 65 | 20 6c 69 6e 65 73 20 62 | it. The| lines b|
|00001a90| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 24 50 |eginning| with $P|
|00001aa0| 20 61 6e 64 20 24 45 20 | 0d 20 20 20 20 73 70 65 | and $E |. spe|
|00001ab0| 63 69 66 79 20 61 20 70 | 72 6f 6c 6f 67 20 61 6e |cify a p|rolog an|
|00001ac0| 64 20 65 70 69 6c 6f 67 | 2c 20 61 64 64 69 6e 67 |d epilog|, adding|
|00001ad0| 20 73 6f 6d 65 20 65 78 | 74 72 61 20 2a 27 73 20 | some ex|tra *'s |
|00001ae0| 61 6e 64 20 6c 69 6e 65 | 66 65 65 64 73 20 74 6f |and line|feeds to|
|00001af0| 20 70 6c 65 61 73 65 20 | 51 75 69 63 6b 44 45 58 | please |QuickDEX|
|00001b00| 2e 0d 0d 20 20 20 20 48 | 65 72 65 20 61 72 65 20 |... H|ere are |
|00001b10| 73 6f 6d 65 20 6d 6f 72 | 65 20 65 78 61 6d 70 6c |some mor|e exampl|
|00001b20| 65 73 3a 0d 20 20 20 20 | 0d 20 20 20 20 52 65 76 |es:. |. Rev|
|00001b30| 65 72 74 20 74 6f 20 74 | 68 65 20 6f 6c 64 20 66 |ert to t|he old f|
|00001b40| 6f 72 6d 61 74 20 6f 66 | 20 43 56 4e 65 74 20 6d |ormat of| CVNet m|
|00001b50| 61 73 74 65 72 20 6c 69 | 73 74 20 28 62 75 74 20 |aster li|st (but |
|00001b60| 77 69 74 68 6f 75 74 20 | 63 6f 6e 74 69 6e 75 61 |without |continua|
|00001b70| 74 69 6f 6e 20 6c 69 6e | 65 73 29 3a 0d 09 09 24 |tion lin|es):...$|
|00001b80| 4c 24 43 31 32 24 46 24 | 43 32 32 24 49 24 43 34 |L$C12$F$|C22$I$C4|
|00001b90| 33 24 41 0d 09 70 72 6f | 64 75 63 65 73 0d 09 09 |3$A..pro|duces...|
|00001ba0| 41 62 72 61 6d 6f 76 20 | 20 20 20 49 73 72 61 65 |Abramov | Israe|
|00001bb0| 6c 20 20 20 20 42 72 6f | 6f 6b 6c 79 6e 20 43 6f |l Bro|oklyn Co|
|00001bc0| 6c 6c 65 67 65 20 20 20 | 20 20 69 78 72 62 63 40 |llege | ixrbc@|
|00001bd0| 63 75 6e 79 76 6d 2e 62 | 69 74 6e 65 74 0d 0d 09 |cunyvm.b|itnet...|
|00001be0| 54 61 62 2d 73 65 70 61 | 72 61 74 65 64 20 41 53 |Tab-sepa|rated AS|
|00001bf0| 43 49 49 20 66 6f 72 6d | 61 74 20 66 6f 72 20 69 |CII form|at for i|
|00001c00| 6d 70 6f 72 74 69 6e 67 | 20 69 6e 74 6f 20 4e 65 |mporting| into Ne|
|00001c10| 58 54 20 53 70 65 65 64 | 44 65 58 20 61 70 70 6c |XT Speed|DeX appl|
|00001c20| 69 63 61 74 69 6f 6e 3a | 0d 09 09 24 4c 2c 20 24 |ication:|...$L, $|
|00001c30| 46 24 54 24 41 24 54 24 | 49 0d 09 70 72 6f 64 75 |F$T$A$T$|I..produ|
|00001c40| 63 65 73 0d 09 09 41 62 | 72 61 6d 6f 76 2c 20 49 |ces...Ab|ramov, I|
|00001c50| 73 72 61 65 6c 09 69 78 | 72 62 63 40 63 75 6e 79 |srael.ix|rbc@cuny|
|00001c60| 76 6d 2e 62 69 74 6e 65 | 74 09 42 72 6f 6f 6b 6c |vm.bitne|t.Brookl|
|00001c70| 79 6e 20 43 6f 6c 6c 65 | 67 65 0d 09 09 20 20 20 |yn Colle|ge... |
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 5e 20 20 20 | | ^ |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 5e 0d 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |^... | |
|00001cb0| 20 20 54 41 42 20 20 20 | 20 20 20 20 20 20 20 20 | TAB | |
|00001cc0| 20 20 20 20 20 20 54 41 | 42 0d 0d 09 41 20 62 61 | TA|B...A ba|
|00001cd0| 73 69 63 20 66 6f 72 6d | 61 74 20 6d 69 67 68 74 |sic form|at might|
|00001ce0| 20 64 65 6d 61 72 63 61 | 74 65 20 66 69 65 6c 64 | demarca|te field|
|00001cf0| 20 62 79 20 71 75 6f 74 | 65 73 20 61 6e 64 20 63 | by quot|es and c|
|00001d00| 6f 6d 6d 61 73 3a 0d 09 | 09 22 24 4c 22 2c 20 22 |ommas:..|."$L", "|
|00001d10| 24 46 22 2c 20 22 24 49 | 22 2c 20 22 24 41 22 0d |$F", "$I|", "$A".|
|00001d20| 09 70 72 6f 64 75 63 65 | 73 0d 09 09 22 41 62 72 |.produce|s..."Abr|
|00001d30| 61 6d 6f 76 22 2c 20 22 | 49 73 72 61 65 6c 22 2c |amov", "|Israel",|
|00001d40| 20 22 42 72 6f 6f 6b 6c | 79 6e 20 43 6f 6c 6c 65 | "Brookl|yn Colle|
|00001d50| 67 65 22 2c 20 22 69 78 | 72 62 63 40 63 75 6e 79 |ge", "ix|rbc@cuny|
|00001d60| 76 6d 2e 62 69 74 6e 65 | 74 22 0d 0d 20 20 20 2d |vm.bitne|t".. -|
|00001d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 20 20 20 52 65 |--------|--. Re|
|00001dc0| 76 69 73 69 6f 6e 20 68 | 69 73 74 6f 72 79 3a 0d |vision h|istory:.|
|00001dd0| 20 20 20 56 31 2e 30 30 | 2c 20 39 32 2d 30 36 2d | V1.00|, 92-06-|
|00001de0| 30 37 2c 20 49 7a 75 6d | 69 20 4f 68 7a 61 77 61 |07, Izum|i Ohzawa|
|00001df0| 2c 20 69 7a 75 6d 69 40 | 70 69 6e 6f 6b 6f 2e 62 |, izumi@|pinoko.b|
|00001e00| 65 72 6b 65 6c 65 79 2e | 65 64 75 0d 20 20 20 56 |erkeley.|edu. V|
|00001e10| 31 2e 30 31 2c 20 39 32 | 2d 30 36 2d 31 35 2c 20 |1.01, 92|-06-15, |
|00001e20| 44 65 6e 69 73 5f 50 65 | 6c 6c 69 40 69 73 72 2e |Denis_Pe|lli@isr.|
|00001e30| 73 79 72 2e 65 64 75 20 | 61 64 64 65 64 20 73 75 |syr.edu |added su|
|00001e40| 70 70 6f 72 74 20 66 6f | 72 20 4d 61 63 69 6e 74 |pport fo|r Macint|
|00001e50| 6f 73 68 2e 0d 20 20 20 | 56 31 2e 30 32 2c 20 39 |osh.. |V1.02, 9|
|00001e60| 32 2d 30 36 2d 31 36 2c | 20 49 7a 75 6d 69 20 4f |2-06-16,| Izumi O|
|00001e70| 68 7a 61 77 61 2c 20 61 | 64 64 65 64 20 73 75 70 |hzawa, a|dded sup|
|00001e80| 70 6f 72 74 20 66 6f 72 | 20 50 72 6f 6c 6f 67 2c |port for| Prolog,|
|00001e90| 20 45 70 69 6c 6f 67 2e | 0d 20 20 20 56 31 2e 30 | Epilog.|. V1.0|
|00001ea0| 33 2c 20 39 32 2d 30 36 | 2d 31 36 2c 20 44 65 6e |3, 92-06|-16, Den|
|00001eb0| 69 73 20 50 65 6c 6c 69 | 2c 20 73 65 74 20 74 79 |is Pelli|, set ty|
|00001ec0| 70 65 20 61 6e 64 20 63 | 72 65 61 74 6f 72 20 6f |pe and c|reator o|
|00001ed0| 66 20 4d 61 63 20 66 69 | 6c 65 73 0d 20 20 20 56 |f Mac fi|les. V|
|00001ee0| 31 2e 30 34 2c 20 39 32 | 2d 30 36 2d 31 37 2c 20 |1.04, 92|-06-17, |
|00001ef0| 49 7a 75 6d 69 20 26 20 | 44 65 6e 69 73 2c 20 6d |Izumi & |Denis, m|
|00001f00| 69 6e 6f 72 20 66 69 78 | 75 70 73 20 66 6f 72 20 |inor fix|ups for |
|00001f10| 70 6f 72 74 61 62 69 6c | 69 74 79 0d 20 20 20 56 |portabil|ity. V|
|00001f20| 31 2e 30 35 2c 20 39 32 | 2d 30 37 2d 30 31 2c 20 |1.05, 92|-07-01, |
|00001f30| 44 65 6e 69 73 20 66 69 | 78 65 64 20 62 75 67 20 |Denis fi|xed bug |
|00001f40| 72 65 70 6f 72 74 65 64 | 20 62 79 20 4c 61 72 72 |reported| by Larr|
|00001f50| 79 20 54 68 69 62 6f 73 | 2c 20 63 61 6e 20 6e 6f |y Thibos|, can no|
|00001f60| 77 20 6f 70 65 6e 0d 20 | 20 20 09 09 09 09 09 66 |w open. | .....f|
|00001f70| 69 6c 65 73 20 69 6e 20 | 61 6e 79 20 66 6f 6c 64 |iles in |any fold|
|00001f80| 65 72 2e 0d 20 20 20 76 | 31 2e 30 36 3f 2c 34 2f |er.. v|1.06?,4/|
|00001f90| 32 35 2f 39 33 2c 20 44 | 65 6e 69 73 20 63 68 61 |25/93, D|enis cha|
|00001fa0| 6e 67 65 64 20 63 61 6c | 6c 20 74 6f 20 4d 61 63 |nged cal|l to Mac|
|00001fb0| 69 6e 74 6f 73 68 20 53 | 46 47 65 74 46 69 6c 65 |intosh S|FGetFile|
|00001fc0| 28 29 20 74 6f 20 6f 6e | 6c 79 20 6c 69 73 74 20 |() to on|ly list |
|00001fd0| 54 45 58 54 20 66 69 6c | 65 73 2e 0d 20 20 20 09 |TEXT fil|es.. .|
|00001fe0| 09 09 09 09 45 6e 68 61 | 6e 63 65 64 20 66 61 74 |....Enha|nced fat|
|00001ff0| 61 6c 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |al error| message|
|00002000| 2e 0d 20 20 20 76 31 2e | 30 37 3f 2c 36 2f 31 32 |.. v1.|07?,6/12|
|00002010| 2f 39 34 2c 20 44 65 6e | 69 73 20 75 70 64 61 74 |/94, Den|is updat|
|00002020| 65 64 20 66 6f 72 20 63 | 6f 6d 70 61 74 69 62 69 |ed for c|ompatibi|
|00002030| 6c 69 74 79 20 77 69 74 | 68 20 41 70 70 6c 65 27 |lity wit|h Apple'|
|00002040| 73 20 55 6e 69 76 65 72 | 73 61 6c 20 68 65 61 64 |s Univer|sal head|
|00002050| 65 72 20 66 69 6c 65 73 | 2e 0d 20 20 20 09 09 09 |er files|.. ...|
|00002060| 09 09 23 64 65 66 69 6e | 65 20 5f 5f 53 54 44 43 |..#defin|e __STDC|
|00002070| 5f 5f 20 69 66 20 4d 41 | 43 20 69 73 20 74 72 75 |__ if MA|C is tru|
|00002080| 65 2e 0d 20 20 20 09 09 | 09 09 09 23 64 65 66 69 |e.. ..|...#defi|
|00002090| 6e 65 20 63 32 70 73 74 | 72 20 61 6e 64 20 70 32 |ne c2pst|r and p2|
|000020a0| 63 73 74 72 20 69 6e 20 | 74 65 72 6d 73 20 6f 66 |cstr in |terms of|
|000020b0| 20 53 79 6d 61 6e 74 65 | 63 27 73 20 43 74 6f 50 | Symante|c's CtoP|
|000020c0| 73 74 72 20 61 6e 64 20 | 50 74 6f 43 73 74 72 2e |str and |PtoCstr.|
|000020d0| 0d 20 20 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |. ----|--------|
|000020e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00002120| 2a 2f 0d 0d 2f 2a 20 23 | 23 23 23 23 23 23 20 55 |*/../* #|###### U|
|00002130| 6e 63 6f 6d 6d 65 6e 74 | 20 74 68 65 20 6f 6e 65 |ncomment| the one|
|00002140| 20 74 68 61 74 20 69 73 | 20 61 70 70 72 6f 70 72 | that is| appropr|
|00002150| 69 61 74 65 20 66 6f 72 | 20 79 6f 75 72 20 65 6e |iate for| your en|
|00002160| 76 69 72 6f 6e 6d 65 6e | 74 20 23 23 23 23 23 23 |vironmen|t ######|
|00002170| 23 23 23 23 23 20 2a 2f | 0d 2f 2a 20 23 64 65 66 |##### */|./* #def|
|00002180| 69 6e 65 20 55 4e 49 58 | 20 20 20 20 20 20 31 20 |ine UNIX| 1 |
|00002190| 2a 2f 09 09 2f 2a 20 53 | 75 6e 2c 20 4e 65 58 54 |*/../* S|un, NeXT|
|000021a0| 2c 20 42 53 44 2c 20 61 | 6e 64 20 6f 74 68 65 72 |, BSD, a|nd other|
|000021b0| 73 20 2a 2f 0d 2f 2a 20 | 23 64 65 66 69 6e 65 20 |s */./* |#define |
|000021c0| 4d 53 44 4f 53 20 20 20 | 20 20 31 20 2a 2f 09 09 |MSDOS | 1 */..|
|000021d0| 2f 2a 20 4d 69 63 72 6f | 73 6f 66 74 20 43 2c 20 |/* Micro|soft C, |
|000021e0| 54 75 72 62 6f 20 43 2c | 20 43 2b 2b 20 66 6f 72 |Turbo C,| C++ for|
|000021f0| 20 4d 53 44 4f 53 20 2a | 2f 0d 23 64 65 66 69 6e | MSDOS *|/.#defin|
|00002200| 65 20 4d 41 43 20 20 20 | 20 20 20 20 31 20 09 09 |e MAC | 1 ..|
|00002210| 09 2f 2a 20 4d 61 63 69 | 6e 74 6f 73 68 20 54 48 |./* Maci|ntosh TH|
|00002220| 49 4e 4b 20 43 20 2a 2f | 0d 23 69 66 64 65 66 20 |INK C */|.#ifdef |
|00002230| 4d 41 43 0d 09 23 70 72 | 61 67 6d 61 20 6f 6e 6c |MAC..#pr|agma onl|
|00002240| 79 5f 73 74 64 5f 6b 65 | 79 77 6f 72 64 73 20 6f |y_std_ke|ywords o|
|00002250| 66 66 0d 23 65 6e 64 69 | 66 0d 23 69 6e 63 6c 75 |ff.#endi|f.#inclu|
|00002260| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0d 23 69 66 |de <stdi|o.h>.#if|
|00002270| 64 65 66 20 55 4e 49 58 | 0d 23 69 6e 63 6c 75 64 |def UNIX|.#includ|
|00002280| 65 20 3c 73 74 72 69 6e | 67 73 2e 68 3e 0d 23 65 |e <strin|gs.h>.#e|
|00002290| 6e 64 69 66 0d 23 69 66 | 64 65 66 20 4d 53 44 4f |ndif.#if|def MSDO|
|000022a0| 53 0d 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |S.#inclu|de <stri|
|000022b0| 6e 67 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 23 69 66 |ng.h>.#e|ndif.#if|
|000022c0| 64 65 66 20 4d 41 43 0d | 09 2f 2a 0d 09 09 4d 61 |def MAC.|./*...Ma|
|000022d0| 63 20 43 20 63 6f 6d 70 | 69 6c 65 72 73 20 69 6e |c C comp|ilers in|
|000022e0| 63 6c 75 64 65 20 65 78 | 74 65 6e 73 69 6f 6e 73 |clude ex|tensions|
|000022f0| 20 62 65 79 6f 6e 64 20 | 53 74 61 6e 64 61 72 64 | beyond |Standard|
|00002300| 20 43 2c 20 62 75 74 0d | 09 09 66 6f 72 20 74 68 | C, but.|..for th|
|00002310| 65 20 70 75 72 70 6f 73 | 65 73 20 6f 66 20 74 68 |e purpos|es of th|
|00002320| 69 73 20 66 69 6c 65 20 | 61 72 65 20 62 65 73 74 |is file |are best|
|00002330| 20 74 68 6f 75 67 68 74 | 20 6f 66 20 61 73 20 53 | thought| of as S|
|00002340| 74 61 6e 64 61 72 64 20 | 43 2e 0d 09 2a 2f 0d 09 |tandard |C...*/..|
|00002350| 23 69 66 6e 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |#ifndef |__STDC__|
|00002360| 0d 09 09 23 64 65 66 69 | 6e 65 20 5f 5f 53 54 44 |...#defi|ne __STD|
|00002370| 43 5f 5f 20 30 0d 09 23 | 65 6e 64 69 66 0d 09 23 |C__ 0..#|endif..#|
|00002380| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00002390| 68 3e 0d 09 23 69 6e 63 | 6c 75 64 65 20 3c 53 74 |h>..#inc|lude <St|
|000023a0| 61 6e 64 61 72 64 46 69 | 6c 65 2e 68 3e 0d 09 23 |andardFi|le.h>..#|
|000023b0| 69 6e 63 6c 75 64 65 20 | 3c 51 75 69 63 6b 44 72 |include |<QuickDr|
|000023c0| 61 77 2e 68 3e 0d 09 23 | 69 6e 63 6c 75 64 65 20 |aw.h>..#|include |
|000023d0| 3c 4d 65 6d 6f 72 79 2e | 68 3e 0d 09 23 69 6e 63 |<Memory.|h>..#inc|
|000023e0| 6c 75 64 65 20 3c 46 6f | 6e 74 73 2e 68 3e 0d 09 |lude <Fo|nts.h>..|
|000023f0| 23 69 6e 63 6c 75 64 65 | 20 3c 44 69 61 6c 6f 67 |#include| <Dialog|
|00002400| 73 2e 68 3e 0d 09 23 69 | 6e 63 6c 75 64 65 20 3c |s.h>..#i|nclude <|
|00002410| 45 76 65 6e 74 73 2e 68 | 3e 0d 09 23 69 6e 63 6c |Events.h|>..#incl|
|00002420| 75 64 65 20 3c 4f 53 45 | 76 65 6e 74 73 2e 68 3e |ude <OSE|vents.h>|
|00002430| 0d 09 23 69 6e 63 6c 75 | 64 65 20 3c 46 69 6c 65 |..#inclu|de <File|
|00002440| 73 2e 68 3e 0d 09 23 69 | 66 20 54 48 49 4e 4b 5f |s.h>..#i|f THINK_|
|00002450| 43 0d 09 09 23 69 6e 63 | 6c 75 64 65 20 3c 70 61 |C...#inc|lude <pa|
|00002460| 73 63 61 6c 2e 68 3e 09 | 2f 2a 20 43 74 6f 50 53 |scal.h>.|/* CtoPS|
|00002470| 74 72 28 29 20 61 6e 64 | 20 50 74 6f 43 53 74 72 |tr() and| PtoCStr|
|00002480| 28 29 20 2a 2f 0d 09 09 | 23 69 66 6e 64 65 66 20 |() */...|#ifndef |
|00002490| 63 32 70 73 74 72 0d 09 | 09 09 23 64 65 66 69 6e |c2pstr..|..#defin|
|000024a0| 65 20 63 32 70 73 74 72 | 20 43 74 6f 50 73 74 72 |e c2pstr| CtoPstr|
|000024b0| 0d 09 09 09 23 64 65 66 | 69 6e 65 20 70 32 63 73 |....#def|ine p2cs|
|000024c0| 74 72 20 50 74 6f 43 73 | 74 72 0d 09 09 23 65 6e |tr PtoCs|tr...#en|
|000024d0| 64 69 66 0d 09 23 65 6c | 73 65 0d 09 09 23 69 6e |dif..#el|se...#in|
|000024e0| 63 6c 75 64 65 20 3c 53 | 74 72 69 6e 67 73 2e 68 |clude <S|trings.h|
|000024f0| 3e 2f 2a 20 63 32 70 73 | 74 72 28 29 20 61 6e 64 |>/* c2ps|tr() and|
|00002500| 20 70 32 63 73 74 72 28 | 29 20 2a 2f 0d 09 23 65 | p2cstr(|) */..#e|
|00002510| 6e 64 69 66 0d 09 45 76 | 65 6e 74 52 65 63 6f 72 |ndif..Ev|entRecor|
|00002520| 64 20 65 76 65 6e 74 3b | 0d 09 73 74 61 74 69 63 |d event;|..static|
|00002530| 20 76 6f 69 64 20 53 65 | 74 46 69 6c 65 49 6e 66 | void Se|tFileInf|
|00002540| 6f 28 63 68 61 72 20 2a | 66 69 6c 65 4e 61 6d 65 |o(char *|fileName|
|00002550| 2c 4f 53 54 79 70 65 20 | 66 69 6c 65 54 79 70 65 |,OSType |fileType|
|00002560| 2c 4f 53 54 79 70 65 20 | 66 69 6c 65 43 72 65 61 |,OSType |fileCrea|
|00002570| 74 6f 72 29 3b 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |tor);.#e|ndif..#i|
|00002580| 66 64 65 66 20 5f 5f 53 | 54 44 43 5f 5f 09 09 09 |fdef __S|TDC__...|
|00002590| 2f 2a 20 41 4e 53 49 2d | 43 2d 73 74 79 6c 65 20 |/* ANSI-|C-style |
|000025a0| 70 72 6f 74 6f 74 79 70 | 65 73 20 2a 2f 0d 23 69 |prototyp|es */.#i|
|000025b0| 6e 63 6c 75 64 65 20 3c | 73 74 64 6c 69 62 2e 68 |nclude <|stdlib.h|
|000025c0| 3e 09 09 2f 2a 20 65 78 | 69 74 28 29 20 61 6e 64 |>../* ex|it() and|
|000025d0| 20 61 74 6f 69 28 29 20 | 2a 2f 0d 76 6f 69 64 20 | atoi() |*/.void |
|000025e0| 75 73 61 67 65 28 76 6f | 69 64 29 3b 0d 76 6f 69 |usage(vo|id);.voi|
|000025f0| 64 20 73 74 75 70 69 64 | 28 76 6f 69 64 29 3b 0d |d stupid|(void);.|
|00002600| 63 68 61 72 20 2a 66 69 | 6e 64 65 78 28 63 68 61 |char *fi|ndex(cha|
|00002610| 72 20 2a 73 74 72 2c 20 | 63 68 61 72 20 63 68 29 |r *str, |char ch)|
|00002620| 3b 0d 76 6f 69 64 20 72 | 65 6d 6f 76 65 5f 63 6f |;.void r|emove_co|
|00002630| 6d 6d 61 28 63 68 61 72 | 20 2a 73 74 72 29 3b 0d |mma(char| *str);.|
|00002640| 69 6e 74 20 63 68 65 63 | 6b 5f 61 64 64 72 65 73 |int chec|k_addres|
|00002650| 73 28 63 68 61 72 20 2a | 73 74 72 29 3b 0d 76 6f |s(char *|str);.vo|
|00002660| 69 64 20 6f 75 74 73 74 | 72 69 6e 67 28 63 68 61 |id outst|ring(cha|
|00002670| 72 20 2a 73 74 72 2c 20 | 46 49 4c 45 20 2a 66 70 |r *str, |FILE *fp|
|00002680| 29 3b 0d 76 6f 69 64 20 | 6f 75 74 63 68 61 72 28 |);.void |outchar(|
|00002690| 69 6e 74 20 63 2c 20 46 | 49 4c 45 20 2a 66 70 29 |int c, F|ILE *fp)|
|000026a0| 3b 0d 76 6f 69 64 20 77 | 72 69 74 65 5f 72 65 63 |;.void w|rite_rec|
|000026b0| 6f 72 64 28 46 49 4c 45 | 20 2a 66 70 29 3b 0d 23 |ord(FILE| *fp);.#|
|000026c0| 65 6e 64 69 66 0d 0d 2f | 2a 20 42 61 64 20 42 61 |endif../|* Bad Ba|
|000026d0| 64 20 47 6c 6f 62 61 6c | 73 20 2a 2f 0d 69 6e 74 |d Global|s */.int|
|000026e0| 20 6c 69 6e 65 63 6e 74 | 20 3d 20 30 3b 09 09 2f | linecnt| = 0;../|
|000026f0| 2a 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |* number| of line|
|00002700| 73 20 69 6e 63 6c 75 64 | 69 6e 67 20 6a 75 6e 6b |s includ|ing junk|
|00002710| 20 66 6f 72 20 65 72 72 | 6f 72 20 72 65 70 6f 72 | for err|or repor|
|00002720| 74 20 2a 2f 0d 69 6e 74 | 20 72 65 63 6f 72 64 63 |t */.int| recordc|
|00002730| 6e 74 20 3d 20 30 3b 09 | 09 2f 2a 20 6e 75 6d 62 |nt = 0;.|./* numb|
|00002740| 65 72 20 6f 66 20 72 65 | 63 6f 72 64 73 20 70 72 |er of re|cords pr|
|00002750| 6f 63 65 73 73 65 64 20 | 2a 2f 0d 69 6e 74 20 63 |ocessed |*/.int c|
|00002760| 6f 6c 75 6d 6e 20 3d 20 | 31 3b 09 09 09 2f 2a 20 |olumn = |1;.../* |
|00002770| 63 75 72 72 65 6e 74 20 | 63 6f 6c 75 6d 6e 20 70 |current |column p|
|00002780| 6f 73 69 74 69 6f 6e 20 | 6f 66 20 6f 75 74 70 75 |osition |of outpu|
|00002790| 74 20 2a 2f 0d 63 68 61 | 72 20 2a 6f 6b 63 68 61 |t */.cha|r *okcha|
|000027a0| 72 20 3d 20 22 21 40 25 | 2e 2b 2d 5f 2f 22 3b 09 |r = "!@%|.+-_/";.|
|000027b0| 2f 2a 20 6e 6f 6e 2d 61 | 6c 70 68 61 6e 75 6d 65 |/* non-a|lphanume|
|000027c0| 72 69 63 73 20 74 68 61 | 74 20 61 72 65 20 4f 4b |rics tha|t are OK|
|000027d0| 20 69 6e 20 65 2d 6d 61 | 69 6c 20 61 64 64 72 65 | in e-ma|il addre|
|000027e0| 73 73 20 2a 2f 0d 63 68 | 61 72 20 2a 64 65 66 66 |ss */.ch|ar *deff|
|000027f0| 69 6c 65 20 3d 20 22 63 | 76 6e 65 74 63 6e 76 2e |ile = "c|vnetcnv.|
|00002800| 66 6d 74 22 3b 09 2f 2a | 20 64 65 66 61 75 6c 74 |fmt";./*| default|
|00002810| 20 66 69 6c 65 6e 61 6d | 65 20 66 6f 72 20 74 61 | filenam|e for ta|
|00002820| 72 67 65 74 20 66 6f 72 | 6d 61 74 20 73 70 65 63 |rget for|mat spec|
|00002830| 69 66 69 63 61 74 69 6f | 6e 20 2a 2f 0d 63 68 61 |ificatio|n */.cha|
|00002840| 72 20 2a 66 6d 74 66 69 | 6c 65 3b 09 09 09 2f 2a |r *fmtfi|le;.../*|
|00002850| 20 65 69 74 68 65 72 20 | 64 65 66 66 69 6c 65 20 | either |deffile |
|00002860| 6f 72 20 61 72 67 76 5b | 33 5d 20 69 66 20 67 69 |or argv[|3] if gi|
|00002870| 76 65 6e 20 2a 2f 0d 63 | 68 61 72 20 66 6d 74 5b |ven */.c|har fmt[|
|00002880| 32 35 36 5d 3b 09 09 09 | 2f 2a 20 6f 75 74 70 75 |256];...|/* outpu|
|00002890| 74 20 66 6f 72 6d 61 74 | 20 73 74 72 69 6e 67 20 |t format| string |
|000028a0| 72 65 61 64 20 66 72 6f | 6d 20 66 6d 74 66 69 6c |read fro|m fmtfil|
|000028b0| 65 20 2a 2f 0d 63 68 61 | 72 20 6c 69 6e 65 62 75 |e */.cha|r linebu|
|000028c0| 66 5b 32 35 36 5d 3b 09 | 09 2f 2a 20 6c 69 6e 65 |f[256];.|./* line|
|000028d0| 20 62 75 66 66 65 72 20 | 66 6f 72 20 43 56 4e 65 | buffer |for CVNe|
|000028e0| 74 20 66 69 6c 65 20 2a | 2f 0d 63 68 61 72 20 66 |t file *|/.char f|
|000028f0| 4c 69 6e 65 42 75 66 66 | 65 72 5b 32 35 36 5d 3b |LineBuff|er[256];|
|00002900| 09 09 2f 2a 20 6c 69 6e | 65 20 62 75 66 66 65 72 |../* lin|e buffer|
|00002910| 20 66 6f 72 20 66 6f 72 | 6d 61 74 20 66 69 6c 65 | for for|mat file|
|00002920| 20 2a 2f 0d 63 68 61 72 | 20 74 6d 70 62 75 66 5b | */.char| tmpbuf[|
|00002930| 32 35 36 5d 3b 09 09 2f | 2a 20 62 75 66 66 65 72 |256];../|* buffer|
|00002940| 20 66 6f 72 20 70 72 6f | 63 65 73 73 69 6e 67 20 | for pro|cessing |
|00002950| 2a 2f 0d 63 68 61 72 20 | 6c 61 73 74 6e 61 6d 65 |*/.char |lastname|
|00002960| 5b 31 32 38 5d 3b 09 09 | 2f 2a 20 53 74 6f 72 61 |[128];..|/* Stora|
|00002970| 67 65 20 66 6f 72 20 6c | 61 73 74 20 6e 61 6d 65 |ge for l|ast name|
|00002980| 20 2a 2f 0d 63 68 61 72 | 20 66 69 72 73 74 69 6e | */.char| firstin|
|00002990| 69 5b 31 32 38 5d 3b 09 | 09 2f 2a 20 53 74 6f 72 |i[128];.|./* Stor|
|000029a0| 61 67 65 20 66 6f 72 20 | 66 69 72 73 74 20 6e 61 |age for |first na|
|000029b0| 6d 65 2c 20 69 6e 69 74 | 69 61 6c 20 2a 2f 0d 63 |me, init|ial */.c|
|000029c0| 68 61 72 20 61 66 66 69 | 6c 69 61 74 69 6f 6e 5b |har affi|liation[|
|000029d0| 31 32 38 5d 3b 09 09 2f | 2a 20 53 74 6f 72 61 67 |128];../|* Storag|
|000029e0| 65 20 66 6f 72 20 69 6e | 73 74 69 74 75 74 69 6f |e for in|stitutio|
|000029f0| 6e 61 6c 20 61 66 66 69 | 6c 69 61 74 69 6f 6e 20 |nal affi|liation |
|00002a00| 2a 2f 0d 63 68 61 72 20 | 65 6d 61 64 64 72 65 73 |*/.char |emaddres|
|00002a10| 73 5b 31 32 38 5d 3b 09 | 09 2f 2a 20 53 74 6f 72 |s[128];.|./* Stor|
|00002a20| 61 67 65 20 66 6f 72 20 | 65 2d 6d 61 69 6c 20 61 |age for |e-mail a|
|00002a30| 64 64 72 65 73 73 20 2a | 2f 0d 0d 23 69 66 64 65 |ddress *|/..#ifde|
|00002a40| 66 20 4d 41 43 0d 73 74 | 61 74 69 63 20 76 6f 69 |f MAC.st|atic voi|
|00002a50| 64 20 53 65 74 46 69 6c | 65 49 6e 66 6f 28 63 68 |d SetFil|eInfo(ch|
|00002a60| 61 72 20 2a 66 69 6c 65 | 4e 61 6d 65 2c 4f 53 54 |ar *file|Name,OST|
|00002a70| 79 70 65 20 66 69 6c 65 | 54 79 70 65 2c 4f 53 54 |ype file|Type,OST|
|00002a80| 79 70 65 20 66 69 6c 65 | 43 72 65 61 74 6f 72 29 |ype file|Creator)|
|00002a90| 0d 7b 0d 09 46 49 6e 66 | 6f 20 6f 75 74 46 69 6c |.{..FInf|o outFil|
|00002aa0| 65 49 6e 66 6f 3b 0d 09 | 0d 09 63 32 70 73 74 72 |eInfo;..|..c2pstr|
|00002ab0| 28 66 69 6c 65 4e 61 6d | 65 29 3b 0d 09 47 65 74 |(fileNam|e);..Get|
|00002ac0| 46 49 6e 66 6f 28 28 53 | 74 72 69 6e 67 50 74 72 |FInfo((S|tringPtr|
|00002ad0| 29 66 69 6c 65 4e 61 6d | 65 2c 30 2c 26 6f 75 74 |)fileNam|e,0,&out|
|00002ae0| 46 69 6c 65 49 6e 66 6f | 29 3b 0d 09 6f 75 74 46 |FileInfo|);..outF|
|00002af0| 69 6c 65 49 6e 66 6f 2e | 66 64 54 79 70 65 20 3d |ileInfo.|fdType =|
|00002b00| 20 66 69 6c 65 54 79 70 | 65 3b 0d 09 6f 75 74 46 | fileTyp|e;..outF|
|00002b10| 69 6c 65 49 6e 66 6f 2e | 66 64 43 72 65 61 74 6f |ileInfo.|fdCreato|
|00002b20| 72 20 3d 20 66 69 6c 65 | 43 72 65 61 74 6f 72 3b |r = file|Creator;|
|00002b30| 0d 09 53 65 74 46 49 6e | 66 6f 28 28 53 74 72 69 |..SetFIn|fo((Stri|
|00002b40| 6e 67 50 74 72 29 66 69 | 6c 65 4e 61 6d 65 2c 30 |ngPtr)fi|leName,0|
|00002b50| 2c 26 6f 75 74 46 69 6c | 65 49 6e 66 6f 29 3b 0d |,&outFil|eInfo);.|
|00002b60| 09 70 32 63 73 74 72 28 | 28 76 6f 69 64 20 2a 29 |.p2cstr(|(void *)|
|00002b70| 66 69 6c 65 4e 61 6d 65 | 29 3b 0d 7d 0d 23 65 6e |fileName|);.}.#en|
|00002b80| 64 69 66 0d 0d 2f 2a 20 | 5f 5f 53 54 44 43 5f 5f |dif../* |__STDC__|
|00002b90| 20 69 73 20 61 20 70 72 | 65 64 65 66 69 6e 65 64 | is a pr|edefined|
|00002ba0| 20 6d 61 63 72 6f 20 66 | 6f 72 20 41 4e 53 49 2d | macro f|or ANSI-|
|00002bb0| 73 74 61 6e 64 61 72 64 | 20 43 2e 0d 20 2a 20 54 |standard| C.. * T|
|00002bc0| 68 69 73 20 73 74 75 66 | 66 20 69 73 20 6e 65 65 |his stuf|f is nee|
|00002bd0| 64 65 64 20 74 6f 20 69 | 6e 63 72 65 61 73 65 20 |ded to i|ncrease |
|00002be0| 70 6f 72 74 61 62 69 6c | 69 74 79 20 66 6f 72 20 |portabil|ity for |
|00002bf0| 73 6f 6d 65 20 6f 62 73 | 6f 6c 65 74 65 20 43 20 |some obs|olete C |
|00002c00| 63 6f 6d 70 69 6c 65 72 | 73 2e 0d 20 2a 2f 0d 0d |compiler|s.. */..|
|00002c10| 23 69 66 64 65 66 20 5f | 5f 53 54 44 43 5f 5f 0d |#ifdef _|_STDC__.|
|00002c20| 76 6f 69 64 20 75 73 61 | 67 65 28 76 6f 69 64 29 |void usa|ge(void)|
|00002c30| 0d 23 65 6c 73 65 0d 75 | 73 61 67 65 28 29 0d 23 |.#else.u|sage().#|
|00002c40| 65 6e 64 69 66 0d 7b 0d | 23 69 66 64 65 66 20 4d |endif.{.|#ifdef M|
|00002c50| 41 43 0d 09 20 20 20 20 | 70 72 69 6e 74 66 28 22 |AC.. |printf("|
|00002c60| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 61 73 6b |This pro|gram ask|
|00002c70| 73 20 79 6f 75 20 74 6f | 20 6f 70 65 6e 20 79 6f |s you to| open yo|
|00002c80| 75 72 20 43 56 4e 65 74 | 20 6d 61 73 74 65 72 20 |ur CVNet| master |
|00002c90| 66 69 6c 65 2c 5c 6e 22 | 29 3b 0d 09 20 20 20 20 |file,\n"|);.. |
|00002ca0| 70 72 69 6e 74 66 28 22 | 20 20 20 20 20 61 6e 64 |printf("| and|
|00002cb0| 20 68 6f 77 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | how you| want to|
|00002cc0| 20 73 61 76 65 20 69 74 | 2e 5c 6e 22 29 3b 0d 09 | save it|.\n");..|
|00002cd0| 20 20 20 20 70 72 69 6e | 74 66 28 22 20 20 20 20 | prin|tf(" |
|00002ce0| 20 41 6e 64 2c 20 75 6e | 6c 65 73 73 20 74 68 65 | And, un|less the|
|00002cf0| 72 65 20 69 73 20 61 20 | 66 6f 72 6d 61 74 20 66 |re is a |format f|
|00002d00| 69 6c 65 20 63 61 6c 6c | 65 64 20 5c 22 25 73 5c |ile call|ed \"%s\|
|00002d10| 22 2c 5c 6e 22 2c 64 65 | 66 66 69 6c 65 29 3b 0d |",\n",de|ffile);.|
|00002d20| 09 20 20 20 20 70 72 69 | 6e 74 66 28 22 20 20 20 |. pri|ntf(" |
|00002d30| 20 20 61 73 6b 73 20 79 | 6f 75 20 74 6f 20 6f 70 | asks y|ou to op|
|00002d40| 65 6e 20 79 6f 75 72 20 | 6f 77 6e 20 66 6f 72 6d |en your |own form|
|00002d50| 61 74 20 66 69 6c 65 2e | 5c 6e 22 29 3b 0d 09 20 |at file.|\n");.. |
|00002d60| 20 20 20 66 6d 74 66 69 | 6c 65 3d 64 65 66 66 69 | fmtfi|le=deffi|
|00002d70| 6c 65 3b 0d 23 65 6c 73 | 65 0d 09 70 72 69 6e 74 |le;.#els|e..print|
|00002d80| 66 28 22 55 73 61 67 65 | 3a 20 63 76 6e 65 74 63 |f("Usage|: cvnetc|
|00002d90| 6e 76 20 69 6e 70 75 74 | 66 69 6c 65 20 6f 75 74 |nv input|file out|
|00002da0| 70 75 74 66 69 6c 65 20 | 5b 66 6f 72 6d 61 74 66 |putfile |[formatf|
|00002db0| 69 6c 65 5d 5c 6e 22 29 | 3b 0d 23 65 6e 64 69 66 |ile]\n")|;.#endif|
|00002dc0| 0d 09 70 72 69 6e 74 66 | 28 22 20 20 2a 54 68 69 |..printf|(" *Thi|
|00002dd0| 73 20 70 72 6f 67 72 61 | 6d 20 63 6f 6e 76 65 72 |s progra|m conver|
|00002de0| 74 73 20 74 68 65 20 43 | 56 4e 65 74 20 6d 61 73 |ts the C|VNet mas|
|00002df0| 74 65 72 20 6c 69 73 74 | 20 74 6f 20 61 6e 6f 74 |ter list| to anot|
|00002e00| 68 65 72 20 66 6f 72 6d | 61 74 5c 6e 22 29 3b 0d |her form|at\n");.|
|00002e10| 09 70 72 69 6e 74 66 28 | 22 20 20 20 20 20 61 73 |.printf(|" as|
|00002e20| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 66 69 | specifi|ed in fi|
|00002e30| 6c 65 20 3c 25 73 3e 2e | 5c 6e 22 2c 20 66 6d 74 |le <%s>.|\n", fmt|
|00002e40| 66 69 6c 65 29 3b 0d 09 | 70 72 69 6e 74 66 28 22 |file);..|printf("|
|00002e50| 20 20 20 20 20 50 6c 65 | 61 73 65 20 6c 6f 6f 6b | Ple|ase look|
|00002e60| 20 61 74 20 65 78 61 6d | 70 6c 65 20 66 6f 72 6d | at exam|ple form|
|00002e70| 61 74 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |at speci|fication|
|00002e80| 20 66 69 6c 65 73 20 77 | 69 74 68 20 2a 2e 66 6d | files w|ith *.fm|
|00002e90| 74 5c 6e 22 29 3b 0d 09 | 70 72 69 6e 74 66 28 22 |t\n");..|printf("|
|00002ea0| 20 20 20 20 20 65 78 74 | 65 6e 73 69 6f 6e 2e 5c | ext|ension.\|
|00002eb0| 6e 22 29 3b 0d 09 70 72 | 69 6e 74 66 28 22 20 20 |n");..pr|intf(" |
|00002ec0| 2a 59 6f 75 20 64 6f 20 | 6e 6f 74 20 68 61 76 65 |*You do |not have|
|00002ed0| 20 74 6f 20 65 64 69 74 | 20 6f 75 74 20 74 68 65 | to edit| out the|
|00002ee0| 20 45 2d 6d 61 69 6c 20 | 68 65 61 64 65 72 20 6f | E-mail |header o|
|00002ef0| 72 20 61 6e 79 20 6f 74 | 68 65 72 5c 6e 22 29 3b |r any ot|her\n");|
|00002f00| 0d 09 70 72 69 6e 74 66 | 28 22 20 20 20 20 20 74 |..printf|(" t|
|00002f10| 65 78 74 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |ext at t|he begin|
|00002f20| 6e 69 6e 67 20 61 6e 64 | 20 65 6e 64 20 6f 66 20 |ning and| end of |
|00002f30| 69 6e 70 75 74 20 66 69 | 6c 65 2e 5c 6e 22 29 3b |input fi|le.\n");|
|00002f40| 0d 23 69 66 64 65 66 20 | 4d 41 43 0d 09 20 20 20 |.#ifdef |MAC.. |
|00002f50| 20 70 72 69 6e 74 66 28 | 22 43 6c 69 63 6b 20 74 | printf(|"Click t|
|00002f60| 68 69 73 20 77 69 6e 64 | 6f 77 20 74 6f 20 65 78 |his wind|ow to ex|
|00002f70| 69 74 3a 5c 6e 22 29 3b | 0d 09 20 20 20 20 46 6c |it:\n");|.. Fl|
|00002f80| 75 73 68 45 76 65 6e 74 | 73 28 65 76 65 72 79 45 |ushEvent|s(everyE|
|00002f90| 76 65 6e 74 2c 30 29 3b | 0d 09 20 20 20 20 77 68 |vent,0);|.. wh|
|00002fa0| 69 6c 65 28 21 47 65 74 | 4e 65 78 74 45 76 65 6e |ile(!Get|NextEven|
|00002fb0| 74 28 65 76 65 72 79 45 | 76 65 6e 74 2c 26 65 76 |t(everyE|vent,&ev|
|00002fc0| 65 6e 74 29 29 20 3b 0d | 23 65 6e 64 69 66 0d 09 |ent)) ;.|#endif..|
|00002fd0| 65 78 69 74 28 31 29 3b | 0d 7d 0d 0d 23 69 66 64 |exit(1);|.}..#ifd|
|00002fe0| 65 66 20 5f 5f 53 54 44 | 43 5f 5f 0d 76 6f 69 64 |ef __STD|C__.void|
|00002ff0| 20 73 74 75 70 69 64 28 | 76 6f 69 64 29 0d 23 65 | stupid(|void).#e|
|00003000| 6c 73 65 0d 73 74 75 70 | 69 64 28 29 0d 23 65 6e |lse.stup|id().#en|
|00003010| 64 69 66 0d 7b 0d 70 72 | 69 6e 74 66 28 22 23 23 |dif.{.pr|intf("##|
|00003020| 23 23 23 20 57 41 52 4e | 49 4e 47 20 21 21 21 20 |### WARN|ING !!! |
|00003030| 57 41 52 4e 49 4e 47 20 | 21 21 21 20 57 41 52 4e |WARNING |!!! WARN|
|00003040| 49 4e 47 20 21 21 21 20 | 57 41 52 4e 49 4e 47 20 |ING !!! |WARNING |
|00003050| 21 21 21 20 23 23 23 23 | 23 5c 6e 5c 6e 22 29 3b |!!! ####|#\n\n");|
|00003060| 0d 70 72 69 6e 74 66 28 | 22 20 20 50 6c 65 61 73 |.printf(|" Pleas|
|00003070| 65 20 44 4f 20 4e 4f 54 | 20 41 42 55 53 45 20 74 |e DO NOT| ABUSE t|
|00003080| 68 65 20 63 6f 6d 70 75 | 74 65 72 20 72 65 61 64 |he compu|ter read|
|00003090| 61 62 6c 65 20 64 61 74 | 61 62 61 73 65 20 79 6f |able dat|abase yo|
|000030a0| 75 5c 6e 22 29 3b 0d 70 | 72 69 6e 74 66 28 22 67 |u\n");.p|rintf("g|
|000030b0| 65 6e 65 72 61 74 65 20 | 75 73 69 6e 67 20 74 68 |enerate |using th|
|000030c0| 69 73 20 70 72 6f 67 72 | 61 6d 2e 20 20 4d 61 69 |is progr|am. Mai|
|000030d0| 6c 69 6e 67 20 64 69 72 | 65 63 74 6c 79 20 66 72 |ling dir|ectly fr|
|000030e0| 6f 6d 20 79 6f 75 72 5c | 6e 22 29 3b 0d 70 72 69 |om your\|n");.pri|
|000030f0| 6e 74 66 28 22 63 6f 6d | 70 75 74 65 72 20 74 6f |ntf("com|puter to|
|00003100| 20 61 6c 6c 20 6d 65 6d | 62 65 72 73 20 6f 66 20 | all mem|bers of |
|00003110| 43 56 4e 65 74 20 69 73 | 20 2a 41 42 55 53 45 2a |CVNet is| *ABUSE*|
|00003120| 21 20 20 4e 6f 20 6d 61 | 74 74 65 72 5c 6e 22 29 |! No ma|tter\n")|
|00003130| 3b 0d 70 72 69 6e 74 66 | 28 22 68 6f 77 20 68 6f |;.printf|("how ho|
|00003140| 74 20 61 20 6d 61 6e 75 | 73 63 72 69 70 74 20 6f |t a manu|script o|
|00003150| 72 20 68 6f 77 20 67 72 | 65 61 74 20 61 20 70 72 |r how gr|eat a pr|
|00003160| 6f 64 75 63 74 20 79 6f | 75 20 68 61 76 65 2c 20 |oduct yo|u have, |
|00003170| 64 6f 5c 6e 22 29 3b 0d | 70 72 69 6e 74 66 28 22 |do\n");.|printf("|
|00003180| 6e 6f 74 20 73 65 6e 64 | 20 6d 61 69 6c 73 20 74 |not send| mails t|
|00003190| 6f 20 65 76 65 72 79 6f | 6e 65 20 64 69 72 65 63 |o everyo|ne direc|
|000031a0| 74 6c 79 2e 20 20 49 66 | 20 79 6f 75 20 74 68 69 |tly. If| you thi|
|000031b0| 6e 6b 20 79 6f 75 20 68 | 61 76 65 5c 6e 22 29 3b |nk you h|ave\n");|
|000031c0| 0d 70 72 69 6e 74 66 28 | 22 73 6f 6d 65 20 69 6d |.printf(|"some im|
|000031d0| 70 6f 72 74 61 6e 74 20 | 69 6e 66 6f 72 6d 61 74 |portant |informat|
|000031e0| 69 6f 6e 20 66 6f 72 20 | 61 20 6c 6f 74 20 6f 66 |ion for |a lot of|
|000031f0| 20 70 65 6f 70 6c 65 2c | 20 73 65 6e 64 20 69 74 | people,| send it|
|00003200| 5c 6e 22 29 3b 0d 70 72 | 69 6e 74 66 28 22 74 6f |\n");.pr|intf("to|
|00003210| 20 43 56 4e 45 54 40 76 | 6d 31 2e 79 6f 72 6b 75 | CVNET@v|m1.yorku|
|00003220| 2e 63 61 2e 20 20 49 74 | 20 77 69 6c 6c 20 6e 6f |.ca. It| will no|
|00003230| 74 20 62 65 20 73 65 6e | 74 20 74 6f 20 74 68 65 |t be sen|t to the|
|00003240| 20 6d 65 6d 62 65 72 73 | 5c 6e 22 29 3b 0d 70 72 | members|\n");.pr|
|00003250| 69 6e 74 66 28 22 61 75 | 74 6f 6d 61 74 69 63 61 |intf("au|tomatica|
|00003260| 6c 6c 79 2c 20 68 6f 77 | 65 76 65 72 2e 20 20 54 |lly, how|ever. T|
|00003270| 68 65 20 63 6f 6f 72 64 | 69 6e 61 74 6f 72 20 6f |he coord|inator o|
|00003280| 66 20 43 56 4e 65 74 20 | 77 69 6c 6c 5c 6e 22 29 |f CVNet |will\n")|
|00003290| 3b 0d 70 72 69 6e 74 66 | 28 22 72 65 76 69 65 77 |;.printf|("review|
|000032a0| 20 79 6f 75 72 20 73 75 | 62 6d 69 73 73 69 6f 6e | your su|bmission|
|000032b0| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 74 68 | accordi|ng to th|
|000032c0| 65 20 72 75 6c 65 73 20 | 64 65 76 65 6c 6f 70 65 |e rules |develope|
|000032d0| 64 5c 6e 22 29 3b 0d 70 | 72 69 6e 74 66 28 22 6f |d\n");.p|rintf("o|
|000032e0| 76 65 72 20 74 68 65 20 | 79 65 61 72 73 20 61 73 |ver the |years as|
|000032f0| 20 61 20 72 65 73 75 6c | 74 20 6f 66 20 66 65 65 | a resul|t of fee|
|00003300| 64 62 61 63 6b 20 66 72 | 6f 6d 20 74 68 65 20 6d |dback fr|om the m|
|00003310| 65 6d 62 65 72 73 2e 5c | 6e 22 29 3b 0d 70 72 69 |embers.\|n");.pri|
|00003320| 6e 74 66 28 22 20 20 50 | 6c 65 61 73 65 20 61 6c |ntf(" P|lease al|
|00003330| 73 6f 20 64 6f 20 6e 6f | 74 20 67 69 76 65 20 6f |so do no|t give o|
|00003340| 75 74 20 74 68 65 20 64 | 61 74 61 62 61 73 65 20 |ut the d|atabase |
|00003350| 74 6f 20 6e 6f 6e 2d 6d | 65 6d 62 65 72 73 2e 5c |to non-m|embers.\|
|00003360| 6e 22 29 3b 0d 70 72 69 | 6e 74 66 28 22 20 20 49 |n");.pri|ntf(" I|
|00003370| 20 77 72 6f 74 65 20 74 | 68 69 73 20 70 72 6f 67 | wrote t|his prog|
|00003380| 72 61 6d 20 74 6f 20 67 | 69 76 65 20 75 73 20 63 |ram to g|ive us c|
|00003390| 6f 6e 76 65 6e 69 65 6e | 63 65 20 69 6e 20 66 69 |onvenien|ce in fi|
|000033a0| 6e 64 69 6e 67 5c 6e 22 | 29 3b 0d 70 72 69 6e 74 |nding\n"|);.print|
|000033b0| 66 28 22 74 68 65 20 65 | 2d 6d 61 69 6c 20 61 64 |f("the e|-mail ad|
|000033c0| 64 72 65 73 73 20 6f 66 | 20 6f 75 72 20 63 6f 6c |dress of| our col|
|000033d0| 6c 65 61 67 75 65 73 2e | 20 20 41 62 75 73 65 20 |leagues.| Abuse |
|000033e0| 6f 66 20 74 68 65 5c 6e | 22 29 3b 0d 70 72 69 6e |of the\n|");.prin|
|000033f0| 74 66 28 22 64 61 74 61 | 62 61 73 65 20 77 69 6c |tf("data|base wil|
|00003400| 6c 20 6c 65 61 64 20 74 | 6f 20 79 6f 75 72 20 65 |l lead t|o your e|
|00003410| 78 70 75 6c 73 69 6f 6e | 20 66 72 6f 6d 20 43 56 |xpulsion| from CV|
|00003420| 4e 65 74 2c 5c 6e 22 29 | 3b 0d 70 72 69 6e 74 66 |Net,\n")|;.printf|
|00003430| 28 22 6e 6f 74 20 74 6f | 20 6d 65 6e 74 69 6f 6e |("not to| mention|
|00003440| 20 74 68 61 74 20 65 76 | 65 72 79 6f 6e 65 20 77 | that ev|eryone w|
|00003450| 69 6c 6c 20 68 61 74 65 | 20 79 6f 75 20 66 6f 72 |ill hate| you for|
|00003460| 20 69 74 2e 5c 6e 22 29 | 3b 0d 70 72 69 6e 74 66 | it.\n")|;.printf|
|00003470| 28 22 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |("######|########|
|00003480| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003490| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000034a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 5c 6e 5c |########|#####\n\|
|000034b0| 6e 22 29 3b 0d 23 69 66 | 6e 64 65 66 20 5f 5f 53 |n");.#if|ndef __S|
|000034c0| 54 44 43 5f 5f 0d 72 65 | 74 75 72 6e 28 30 29 3b |TDC__.re|turn(0);|
|000034d0| 0d 23 65 6e 64 69 66 0d | 7d 0d 0d 0d 2f 2a 20 53 |.#endif.|}.../* S|
|000034e0| 69 67 68 2e 20 4e 6f 74 | 20 61 6c 6c 20 43 20 6c |igh. Not| all C l|
|000034f0| 69 62 72 61 72 69 65 73 | 20 69 6e 63 6c 75 64 65 |ibraries| include|
|00003500| 20 69 6e 64 65 78 28 63 | 68 61 72 20 2a 73 74 72 | index(c|har *str|
|00003510| 2c 20 63 68 61 72 20 63 | 68 29 20 66 75 6e 63 74 |, char c|h) funct|
|00003520| 69 6f 6e 20 2a 2f 0d 23 | 69 66 64 65 66 20 5f 5f |ion */.#|ifdef __|
|00003530| 53 54 44 43 5f 5f 0d 63 | 68 61 72 20 2a 66 69 6e |STDC__.c|har *fin|
|00003540| 64 65 78 28 63 68 61 72 | 20 2a 73 74 72 2c 20 63 |dex(char| *str, c|
|00003550| 68 61 72 20 63 68 29 0d | 23 65 6c 73 65 0d 63 68 |har ch).|#else.ch|
|00003560| 61 72 20 2a 66 69 6e 64 | 65 78 28 73 74 72 2c 20 |ar *find|ex(str, |
|00003570| 63 68 29 0d 63 68 61 72 | 20 2a 73 74 72 3b 0d 63 |ch).char| *str;.c|
|00003580| 68 61 72 20 63 68 3b 0d | 23 65 6e 64 69 66 0d 7b |har ch;.|#endif.{|
|00003590| 0d 63 68 61 72 20 2a 70 | 2c 20 2a 65 6e 64 3b 0d |.char *p|, *end;.|
|000035a0| 09 70 20 3d 20 65 6e 64 | 20 3d 20 73 74 72 3b 0d |.p = end| = str;.|
|000035b0| 09 77 68 69 6c 65 28 2a | 65 6e 64 20 21 3d 20 27 |.while(*|end != '|
|000035c0| 5c 30 27 29 20 65 6e 64 | 2b 2b 3b 09 20 20 20 20 |\0') end|++;. |
|000035d0| 2f 2a 20 65 6e 64 20 70 | 6f 69 6e 74 73 20 74 6f |/* end p|oints to|
|000035e0| 20 73 74 72 69 6e 67 20 | 74 65 72 6d 69 6e 61 74 | string |terminat|
|000035f0| 6f 72 20 2a 2f 0d 09 77 | 68 69 6c 65 28 2a 70 20 |or */..w|hile(*p |
|00003600| 21 3d 20 63 68 20 26 26 | 20 2a 70 20 21 3d 20 27 |!= ch &&| *p != '|
|00003610| 5c 30 27 29 20 70 2b 2b | 3b 20 20 2f 2a 20 70 20 |\0') p++|; /* p |
|00003620| 70 6f 69 6e 74 73 20 74 | 6f 20 63 68 61 72 20 63 |points t|o char c|
|00003630| 68 20 69 66 20 70 72 65 | 73 65 6e 74 20 2a 2f 0d |h if pre|sent */.|
|00003640| 09 69 66 28 70 20 21 3d | 20 65 6e 64 29 20 72 65 |.if(p !=| end) re|
|00003650| 74 75 72 6e 20 28 70 29 | 3b 0d 09 65 6c 73 65 20 |turn (p)|;..else |
|00003660| 7b 0d 09 20 20 20 20 66 | 70 72 69 6e 74 66 28 73 |{.. f|printf(s|
|00003670| 74 64 65 72 72 2c 20 22 | 5c 6e 46 41 54 41 4c 20 |tderr, "|\nFATAL |
|00003680| 45 52 52 4f 52 3a 20 4c | 69 6e 65 20 25 64 20 6f |ERROR: L|ine %d o|
|00003690| 66 20 69 6e 70 75 74 20 | 66 69 6c 65 20 69 73 20 |f input |file is |
|000036a0| 6d 69 73 73 69 6e 67 20 | 5c 22 25 63 5c 22 20 63 |missing |\"%c\" c|
|000036b0| 68 61 72 61 63 74 65 72 | 3a 5c 6e 22 2c 0d 09 09 |haracter|:\n",...|
|000036c0| 09 6c 69 6e 65 63 6e 74 | 2c 20 63 68 29 3b 0d 09 |.linecnt|, ch);..|
|000036d0| 20 20 20 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 | fpri|ntf(stde|
|000036e0| 72 72 2c 20 22 25 73 5c | 6e 22 2c 73 74 72 29 3b |rr, "%s\|n",str);|
|000036f0| 09 2f 2a 20 64 67 70 20 | 2a 2f 0d 09 20 20 20 20 |./* dgp |*/.. |
|00003700| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00003710| 5c 6e 42 45 57 41 52 45 | 3a 20 74 68 65 20 6f 75 |\nBEWARE|: the ou|
|00003720| 74 70 75 74 20 66 69 6c | 65 20 69 73 20 69 6e 63 |tput fil|e is inc|
|00003730| 6f 6d 70 6c 65 74 65 2e | 5c 6e 22 29 3b 0d 23 69 |omplete.|\n");.#i|
|00003740| 66 64 65 66 20 4d 41 43 | 0d 09 09 70 72 69 6e 74 |fdef MAC|...print|
|00003750| 66 28 22 43 6c 69 63 6b | 20 74 68 69 73 20 77 69 |f("Click| this wi|
|00003760| 6e 64 6f 77 20 74 6f 20 | 65 78 69 74 3a 5c 6e 22 |ndow to |exit:\n"|
|00003770| 29 3b 0d 09 09 46 6c 75 | 73 68 45 76 65 6e 74 73 |);...Flu|shEvents|
|00003780| 28 65 76 65 72 79 45 76 | 65 6e 74 2c 30 29 3b 0d |(everyEv|ent,0);.|
|00003790| 09 09 77 68 69 6c 65 28 | 21 47 65 74 4e 65 78 74 |..while(|!GetNext|
|000037a0| 45 76 65 6e 74 28 65 76 | 65 72 79 45 76 65 6e 74 |Event(ev|eryEvent|
|000037b0| 2c 26 65 76 65 6e 74 29 | 29 20 3b 0d 23 65 6e 64 |,&event)|) ;.#end|
|000037c0| 69 66 0d 09 20 20 20 20 | 65 78 69 74 28 34 29 3b |if.. |exit(4);|
|000037d0| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 28 4e 55 4c |..}..ret|urn (NUL|
|000037e0| 4c 29 3b 09 09 2f 2a 20 | 69 74 20 73 68 6f 75 6c |L);../* |it shoul|
|000037f0| 64 6e 27 74 20 63 6f 6d | 65 20 68 65 72 65 20 2a |dn't com|e here *|
|00003800| 2f 0d 7d 0d 0d 0d 23 69 | 66 64 65 66 20 5f 5f 53 |/.}...#i|fdef __S|
|00003810| 54 44 43 5f 5f 0d 76 6f | 69 64 20 72 65 6d 6f 76 |TDC__.vo|id remov|
|00003820| 65 5f 63 6f 6d 6d 61 28 | 63 68 61 72 20 2a 73 74 |e_comma(|char *st|
|00003830| 72 29 0d 23 65 6c 73 65 | 0d 72 65 6d 6f 76 65 5f |r).#else|.remove_|
|00003840| 63 6f 6d 6d 61 28 73 74 | 72 29 0d 63 68 61 72 20 |comma(st|r).char |
|00003850| 2a 73 74 72 3b 0d 23 65 | 6e 64 69 66 0d 7b 0d 73 |*str;.#e|ndif.{.s|
|00003860| 74 61 74 69 63 20 63 68 | 61 72 20 74 6d 70 5b 31 |tatic ch|ar tmp[1|
|00003870| 32 38 5d 3b 0d 63 68 61 | 72 20 2a 73 2c 20 2a 74 |28];.cha|r *s, *t|
|00003880| 3b 0d 09 73 20 3d 20 73 | 74 72 3b 0d 09 74 20 3d |;..s = s|tr;..t =|
|00003890| 20 74 6d 70 3b 0d 09 2f | 2a 20 63 6f 70 79 20 73 | tmp;../|* copy s|
|000038a0| 74 72 69 6e 67 20 74 6f | 20 74 6d 70 5b 5d 20 77 |tring to| tmp[] w|
|000038b0| 68 69 6c 65 20 72 65 6d | 6f 76 69 6e 67 20 27 2c |hile rem|oving ',|
|000038c0| 27 20 2a 2f 0d 09 77 68 | 69 6c 65 28 28 2a 74 20 |' */..wh|ile((*t |
|000038d0| 3d 20 2a 73 2b 2b 29 20 | 21 3d 20 27 5c 30 27 29 |= *s++) |!= '\0')|
|000038e0| 0d 09 20 20 20 20 69 66 | 28 2a 74 20 21 3d 20 27 |.. if|(*t != '|
|000038f0| 2c 27 29 20 74 2b 2b 3b | 0d 09 73 74 72 6e 63 70 |,') t++;|..strncp|
|00003900| 79 28 73 74 72 2c 20 74 | 6d 70 2c 20 38 30 29 3b |y(str, t|mp, 80);|
|00003910| 09 09 2f 2a 20 63 6f 70 | 79 20 62 61 63 6b 20 74 |../* cop|y back t|
|00003920| 6f 20 6f 72 69 67 69 6e | 61 6c 20 73 74 72 69 6e |o origin|al strin|
|00003930| 67 20 2a 2f 0d 23 69 66 | 6e 64 65 66 20 5f 5f 53 |g */.#if|ndef __S|
|00003940| 54 44 43 5f 5f 0d 72 65 | 74 75 72 6e 28 30 29 3b |TDC__.re|turn(0);|
|00003950| 0d 23 65 6e 64 69 66 0d | 7d 0d 0d 2f 2a 20 43 68 |.#endif.|}../* Ch|
|00003960| 65 63 6b 20 66 6f 72 20 | 69 6e 76 61 6c 69 64 20 |eck for |invalid |
|00003970| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 65 2d |characte|rs in e-|
|00003980| 6d 61 69 6c 20 61 64 64 | 72 65 73 73 20 2a 2f 0d |mail add|ress */.|
|00003990| 2f 2a 20 4e 6f 6e 2d 7a | 65 72 6f 20 69 66 20 74 |/* Non-z|ero if t|
|000039a0| 68 65 72 65 20 69 73 20 | 61 20 63 68 61 72 61 63 |here is |a charac|
|000039b0| 74 65 72 20 74 68 61 74 | 20 69 73 20 6e 6f 74 20 |ter that| is not |
|000039c0| 73 75 70 70 6f 73 65 64 | 20 74 6f 20 62 65 20 69 |supposed| to be i|
|000039d0| 6e 20 61 64 64 72 65 73 | 73 20 2a 2f 0d 23 69 66 |n addres|s */.#if|
|000039e0| 64 65 66 20 5f 5f 53 54 | 44 43 5f 5f 0d 69 6e 74 |def __ST|DC__.int|
|000039f0| 20 63 68 65 63 6b 5f 61 | 64 64 72 65 73 73 28 63 | check_a|ddress(c|
|00003a00| 68 61 72 20 2a 73 74 72 | 29 0d 23 65 6c 73 65 0d |har *str|).#else.|
|00003a10| 69 6e 74 20 63 68 65 63 | 6b 5f 61 64 64 72 65 73 |int chec|k_addres|
|00003a20| 73 28 73 74 72 29 0d 63 | 68 61 72 20 2a 73 74 72 |s(str).c|har *str|
|00003a30| 3b 0d 23 65 6e 64 69 66 | 0d 7b 0d 63 68 61 72 20 |;.#endif|.{.char |
|00003a40| 2a 70 2c 20 63 3b 0d 69 | 6e 74 20 69 2c 20 6e 63 |*p, c;.i|nt i, nc|
|00003a50| 2c 20 6f 6b 2c 20 72 65 | 74 63 6f 64 65 20 3d 20 |, ok, re|tcode = |
|00003a60| 30 3b 0d 09 70 20 3d 20 | 73 74 72 3b 0d 09 6e 63 |0;..p = |str;..nc|
|00003a70| 20 3d 20 73 74 72 6c 65 | 6e 28 6f 6b 63 68 61 72 | = strle|n(okchar|
|00003a80| 29 3b 0d 09 77 68 69 6c | 65 28 28 63 20 3d 20 2a |);..whil|e((c = *|
|00003a90| 70 2b 2b 29 20 21 3d 20 | 27 5c 30 27 29 20 7b 0d |p++) != |'\0') {.|
|00003aa0| 09 20 20 20 20 6f 6b 20 | 3d 20 30 3b 0d 09 20 20 |. ok |= 0;.. |
|00003ab0| 20 20 69 66 28 63 20 3e | 3d 20 27 61 27 20 26 26 | if(c >|= 'a' &&|
|00003ac0| 20 63 20 3c 3d 20 27 7a | 27 29 20 63 6f 6e 74 69 | c <= 'z|') conti|
|00003ad0| 6e 75 65 3b 0d 09 20 20 | 20 20 69 66 28 63 20 3e |nue;.. | if(c >|
|00003ae0| 3d 20 27 41 27 20 26 26 | 20 63 20 3c 3d 20 27 5a |= 'A' &&| c <= 'Z|
|00003af0| 27 29 20 63 6f 6e 74 69 | 6e 75 65 3b 0d 09 20 20 |') conti|nue;.. |
|00003b00| 20 20 69 66 28 63 20 3e | 3d 20 27 30 27 20 26 26 | if(c >|= '0' &&|
|00003b10| 20 63 20 3c 3d 20 27 39 | 27 29 20 63 6f 6e 74 69 | c <= '9|') conti|
|00003b20| 6e 75 65 3b 0d 09 20 20 | 20 20 66 6f 72 28 69 3d |nue;.. | for(i=|
|00003b30| 30 3b 20 69 3c 6e 63 3b | 20 69 2b 2b 29 20 7b 0d |0; i<nc;| i++) {.|
|00003b40| 09 09 69 66 28 63 20 3d | 3d 20 6f 6b 63 68 61 72 |..if(c =|= okchar|
|00003b50| 5b 69 5d 29 20 7b 0d 09 | 09 20 20 20 20 6f 6b 20 |[i]) {..|. ok |
|00003b60| 3d 31 3b 0d 09 09 20 20 | 20 20 62 72 65 61 6b 3b |=1;... | break;|
|00003b70| 09 2f 2a 20 6f 75 74 20 | 6f 66 20 66 6f 72 28 29 |./* out |of for()|
|00003b80| 20 6c 6f 6f 70 20 2a 2f | 0d 09 09 7d 0d 09 20 20 | loop */|...}.. |
|00003b90| 20 20 7d 0d 09 20 20 20 | 20 69 66 28 6f 6b 29 20 | }.. | if(ok) |
|00003ba0| 63 6f 6e 74 69 6e 75 65 | 3b 09 2f 2a 20 77 68 69 |continue|;./* whi|
|00003bb0| 6c 65 20 6c 6f 6f 70 20 | 2a 2f 0d 09 20 20 20 20 |le loop |*/.. |
|00003bc0| 65 6c 73 65 20 7b 0d 09 | 09 72 65 74 63 6f 64 65 |else {..|.retcode|
|00003bd0| 20 3d 20 63 3b 0d 09 09 | 62 72 65 61 6b 3b 09 09 | = c;...|break;..|
|00003be0| 2f 2a 20 6f 75 74 20 6f | 66 20 77 68 69 6c 65 20 |/* out o|f while |
|00003bf0| 6c 6f 6f 70 20 2a 2f 0d | 09 20 20 20 20 7d 0d 09 |loop */.|. }..|
|00003c00| 7d 0d 09 72 65 74 75 72 | 6e 28 72 65 74 63 6f 64 |}..retur|n(retcod|
|00003c10| 65 29 3b 0d 7d 0d 0d 0d | 23 69 66 64 65 66 20 5f |e);.}...|#ifdef _|
|00003c20| 5f 53 54 44 43 5f 5f 0d | 76 6f 69 64 20 6f 75 74 |_STDC__.|void out|
|00003c30| 73 74 72 69 6e 67 28 63 | 68 61 72 20 2a 73 74 72 |string(c|har *str|
|00003c40| 2c 20 46 49 4c 45 20 2a | 66 70 29 0d 23 65 6c 73 |, FILE *|fp).#els|
|00003c50| 65 0d 6f 75 74 73 74 72 | 69 6e 67 28 73 74 72 2c |e.outstr|ing(str,|
|00003c60| 20 66 70 29 0d 63 68 61 | 72 20 2a 73 74 72 3b 0d | fp).cha|r *str;.|
|00003c70| 46 49 4c 45 20 2a 66 70 | 3b 0d 23 65 6e 64 69 66 |FILE *fp|;.#endif|
|00003c80| 0d 7b 0d 63 68 61 72 20 | 2a 70 3b 0d 69 6e 74 20 |.{.char |*p;.int |
|00003c90| 63 3b 0d 09 70 20 3d 20 | 73 74 72 3b 0d 09 77 68 |c;..p = |str;..wh|
|00003ca0| 69 6c 65 28 28 63 20 3d | 20 2a 70 2b 2b 29 20 21 |ile((c =| *p++) !|
|00003cb0| 3d 20 27 5c 30 27 29 20 | 7b 0d 09 20 20 20 20 70 |= '\0') |{.. p|
|00003cc0| 75 74 63 28 63 2c 20 66 | 70 29 3b 0d 09 20 20 20 |utc(c, f|p);.. |
|00003cd0| 20 63 6f 6c 75 6d 6e 2b | 2b 3b 0d 09 7d 0d 23 69 | column+|+;..}.#i|
|00003ce0| 66 6e 64 65 66 20 5f 5f | 53 54 44 43 5f 5f 0d 72 |fndef __|STDC__.r|
|00003cf0| 65 74 75 72 6e 28 30 29 | 3b 0d 23 65 6e 64 69 66 |eturn(0)|;.#endif|
|00003d00| 0d 7d 0d 0d 0d 23 69 66 | 64 65 66 20 5f 5f 53 54 |.}...#if|def __ST|
|00003d10| 44 43 5f 5f 0d 76 6f 69 | 64 20 6f 75 74 63 68 61 |DC__.voi|d outcha|
|00003d20| 72 28 69 6e 74 20 63 2c | 20 46 49 4c 45 20 2a 66 |r(int c,| FILE *f|
|00003d30| 70 29 0d 23 65 6c 73 65 | 0d 6f 75 74 63 68 61 72 |p).#else|.outchar|
|00003d40| 28 63 2c 20 66 70 29 0d | 69 6e 74 20 63 3b 0d 46 |(c, fp).|int c;.F|
|00003d50| 49 4c 45 20 2a 66 70 3b | 0d 23 65 6e 64 69 66 0d |ILE *fp;|.#endif.|
|00003d60| 7b 0d 09 70 75 74 63 28 | 63 2c 20 66 70 29 3b 0d |{..putc(|c, fp);.|
|00003d70| 09 63 6f 6c 75 6d 6e 2b | 2b 3b 09 2f 2a 20 47 4c |.column+|+;./* GL|
|00003d80| 4f 42 41 4c 20 63 6f 6c | 75 6d 6e 20 63 6f 75 6e |OBAL col|umn coun|
|00003d90| 74 65 72 20 2a 2f 0d 23 | 69 66 6e 64 65 66 20 5f |ter */.#|ifndef _|
|00003da0| 5f 53 54 44 43 5f 5f 0d | 72 65 74 75 72 6e 28 30 |_STDC__.|return(0|
|00003db0| 29 3b 0d 23 65 6e 64 69 | 66 0d 7d 0d 0d 0d 2f 2a |);.#endi|f.}.../*|
|00003dc0| 20 57 72 69 74 65 73 20 | 6f 75 74 20 65 61 63 68 | Writes |out each|
|00003dd0| 20 45 2d 6d 61 69 6c 20 | 61 64 64 72 65 73 73 20 | E-mail |address |
|00003de0| 72 65 63 6f 72 64 20 74 | 6f 20 6f 75 74 70 75 74 |record t|o output|
|00003df0| 20 66 69 6c 65 20 2a 2f | 0d 23 69 66 64 65 66 20 | file */|.#ifdef |
|00003e00| 5f 5f 53 54 44 43 5f 5f | 0d 76 6f 69 64 20 77 72 |__STDC__|.void wr|
|00003e10| 69 74 65 5f 72 65 63 6f | 72 64 28 46 49 4c 45 20 |ite_reco|rd(FILE |
|00003e20| 2a 66 70 29 0d 23 65 6c | 73 65 0d 77 72 69 74 65 |*fp).#el|se.write|
|00003e30| 5f 72 65 63 6f 72 64 28 | 66 70 29 0d 46 49 4c 45 |_record(|fp).FILE|
|00003e40| 20 2a 66 70 3b 0d 69 6e | 74 20 61 74 6f 69 28 29 | *fp;.in|t atoi()|
|00003e50| 3b 09 2f 2f 20 54 68 65 | 20 4d 65 74 72 6f 57 65 |;.// The| MetroWe|
|00003e60| 72 6b 73 20 43 6f 64 65 | 57 61 72 72 69 6f 72 20 |rks Code|Warrior |
|00003e70| 43 20 63 6f 6d 70 69 6c | 65 72 20 69 73 20 53 74 |C compil|er is St|
|00003e80| 61 6e 64 61 72 64 20 43 | 20 61 6e 64 20 64 6f 65 |andard C| and doe|
|00003e90| 73 6e 27 74 20 6c 69 6b | 65 20 74 68 69 73 2e 0d |sn't lik|e this..|
|00003ea0| 23 65 6e 64 69 66 0d 7b | 0d 69 6e 74 20 63 68 2c |#endif.{|.int ch,|
|00003eb0| 20 63 6d 64 2c 20 63 74 | 6f 2c 20 69 2c 20 63 65 | cmd, ct|o, i, ce|
|00003ec0| 6e 64 3b 0d 63 68 61 72 | 20 2a 70 3b 0d 63 68 61 |nd;.char| *p;.cha|
|00003ed0| 72 20 2a 6e 3b 0d 73 74 | 61 74 69 63 20 63 68 61 |r *n;.st|atic cha|
|00003ee0| 72 20 63 6e 6e 5b 31 36 | 5d 3b 0d 09 63 6f 6c 75 |r cnn[16|];..colu|
|00003ef0| 6d 6e 20 3d 20 31 3b 09 | 2f 2a 20 47 4c 4f 42 41 |mn = 1;.|/* GLOBA|
|00003f00| 4c 2c 20 63 75 72 72 65 | 6e 74 20 63 6f 6c 75 6d |L, curre|nt colum|
|00003f10| 6e 20 70 6f 73 69 74 69 | 6f 6e 20 2a 2f 0d 09 70 |n positi|on */..p|
|00003f20| 20 3d 20 66 6d 74 3b 09 | 2f 2a 20 70 6f 69 6e 74 | = fmt;.|/* point|
|00003f30| 65 72 20 74 6f 20 66 6f | 72 6d 61 74 20 73 74 72 |er to fo|rmat str|
|00003f40| 69 6e 67 20 2a 2f 0d 09 | 77 68 69 6c 65 28 28 63 |ing */..|while((c|
|00003f50| 68 20 3d 20 2a 70 2b 2b | 29 20 21 3d 20 27 5c 30 |h = *p++|) != '\0|
|00003f60| 27 29 20 7b 0d 09 20 20 | 20 20 73 77 69 74 63 68 |') {.. | switch|
|00003f70| 28 63 68 29 20 7b 0d 09 | 09 2f 2a 20 46 6f 72 6d |(ch) {..|./* Form|
|00003f80| 61 74 74 69 6e 67 20 63 | 6f 64 65 20 66 6f 72 20 |atting c|ode for |
|00003f90| 76 61 72 69 61 62 6c 65 | 73 2e 20 43 61 73 65 2d |variable|s. Case-|
|00003fa0| 73 65 6e 73 69 74 69 76 | 65 0d 09 09 20 20 20 20 |sensitiv|e... |
|00003fb0| 20 24 4c 20 2d 2d 20 6c | 61 73 74 20 6e 61 6d 65 | $L -- l|ast name|
|00003fc0| 0d 09 09 20 20 20 20 20 | 24 46 20 2d 2d 20 66 69 |... |$F -- fi|
|00003fd0| 72 73 74 20 6e 61 6d 65 | 20 26 20 69 6e 69 74 69 |rst name| & initi|
|00003fe0| 61 6c 0d 09 09 20 20 20 | 20 20 24 49 20 2d 2d 20 |al... | $I -- |
|00003ff0| 69 6e 73 74 69 74 75 74 | 69 6f 6e 61 6c 20 61 66 |institut|ional af|
|00004000| 66 69 6c 69 63 61 74 69 | 6f 6e 0d 09 09 20 20 20 |filicati|on... |
|00004010| 20 20 24 41 20 2d 2d 20 | 61 64 64 72 65 73 73 20 | $A -- |address |
|00004020| 28 65 2d 6d 61 69 6c 29 | 0d 09 09 20 20 20 20 20 |(e-mail)|... |
|00004030| 24 54 20 2d 2d 20 54 41 | 42 20 63 68 61 72 61 63 |$T -- TA|B charac|
|00004040| 74 65 72 0d 09 09 20 20 | 20 20 20 24 4e 20 2d 2d |ter... | $N --|
|00004050| 20 4e 45 57 20 4c 49 4e | 45 20 63 68 61 72 61 63 | NEW LIN|E charac|
|00004060| 74 65 72 20 28 4c 46 20 | 66 6f 72 20 55 4e 49 58 |ter (LF |for UNIX|
|00004070| 2c 20 43 52 4c 46 20 66 | 6f 72 20 4d 53 44 4f 53 |, CRLF f|or MSDOS|
|00004080| 29 0d 09 09 20 20 20 20 | 20 24 43 6e 6e 20 2d 2d |)... | $Cnn --|
|00004090| 20 61 64 76 61 6e 63 65 | 20 74 6f 20 63 6f 6c 75 | advance| to colu|
|000040a0| 6d 6e 20 6e 6e 20 69 66 | 20 70 6f 73 73 69 62 6c |mn nn if| possibl|
|000040b0| 65 20 28 69 66 20 6e 6f | 74 20 70 61 73 74 20 69 |e (if no|t past i|
|000040c0| 74 20 61 6c 72 65 61 64 | 79 29 0d 09 09 20 2a 2f |t alread|y)... */|
|000040d0| 0d 09 09 63 61 73 65 20 | 27 24 27 3a 20 20 20 20 |...case |'$': |
|000040e0| 20 2f 2a 20 73 70 65 63 | 69 61 6c 20 66 6f 72 6d | /* spec|ial form|
|000040f0| 61 74 74 69 6e 67 20 63 | 6f 64 65 20 2a 2f 0d 09 |atting c|ode */..|
|00004100| 09 09 69 66 28 28 63 6d | 64 20 3d 20 2a 70 29 20 |..if((cm|d = *p) |
|00004110| 3d 3d 20 27 5c 30 27 29 | 20 62 72 65 61 6b 3b 0d |== '\0')| break;.|
|00004120| 09 09 09 70 2b 2b 3b 09 | 09 2f 2a 20 61 64 76 61 |...p++;.|./* adva|
|00004130| 6e 63 65 20 70 74 72 20 | 6f 6e 6c 79 20 69 66 20 |nce ptr |only if |
|00004140| 6e 6f 74 20 61 74 20 27 | 5c 30 27 20 61 6c 72 65 |not at '|\0' alre|
|00004150| 61 64 79 20 2a 2f 0d 09 | 09 09 73 77 69 74 63 68 |ady */..|..switch|
|00004160| 28 63 6d 64 29 20 7b 0d | 09 09 09 20 20 20 20 63 |(cmd) {.|... c|
|00004170| 61 73 65 20 27 4c 27 3a | 20 20 20 20 2f 2a 20 6c |ase 'L':| /* l|
|00004180| 61 73 74 20 6e 61 6d 65 | 20 2a 2f 0d 09 09 09 09 |ast name| */.....|
|00004190| 6f 75 74 73 74 72 69 6e | 67 28 6c 61 73 74 6e 61 |outstrin|g(lastna|
|000041a0| 6d 65 2c 20 66 70 29 3b | 20 62 72 65 61 6b 3b 0d |me, fp);| break;.|
|000041b0| 09 09 09 20 20 20 20 63 | 61 73 65 20 27 46 27 3a |... c|ase 'F':|
|000041c0| 20 20 20 20 2f 2a 20 66 | 69 72 73 74 20 6e 61 6d | /* f|irst nam|
|000041d0| 65 20 26 20 69 6e 69 74 | 69 61 6c 20 2a 2f 0d 09 |e & init|ial */..|
|000041e0| 09 09 09 6f 75 74 73 74 | 72 69 6e 67 28 66 69 72 |...outst|ring(fir|
|000041f0| 73 74 69 6e 69 2c 20 66 | 70 29 3b 20 62 72 65 61 |stini, f|p); brea|
|00004200| 6b 3b 0d 09 09 09 20 20 | 20 20 63 61 73 65 20 27 |k;.... | case '|
|00004210| 49 27 3a 20 20 20 20 2f | 2a 20 69 6e 73 74 69 74 |I': /|* instit|
|00004220| 75 74 69 6f 6e 61 6c 20 | 61 66 66 69 6c 69 61 74 |utional |affiliat|
|00004230| 69 6f 6e 20 2a 2f 0d 09 | 09 09 09 6f 75 74 73 74 |ion */..|...outst|
|00004240| 72 69 6e 67 28 61 66 66 | 69 6c 69 61 74 69 6f 6e |ring(aff|iliation|
|00004250| 2c 20 66 70 29 3b 20 62 | 72 65 61 6b 3b 0d 09 09 |, fp); b|reak;...|
|00004260| 09 20 20 20 20 63 61 73 | 65 20 27 41 27 3a 20 20 |. cas|e 'A': |
|00004270| 20 20 2f 2a 20 65 6d 61 | 69 6c 20 61 64 64 72 65 | /* ema|il addre|
|00004280| 73 73 20 2a 2f 0d 09 09 | 09 09 6f 75 74 73 74 72 |ss */...|..outstr|
|00004290| 69 6e 67 28 65 6d 61 64 | 64 72 65 73 73 2c 20 66 |ing(emad|dress, f|
|000042a0| 70 29 3b 20 62 72 65 61 | 6b 3b 0d 09 09 09 20 20 |p); brea|k;.... |
|000042b0| 20 20 63 61 73 65 20 27 | 54 27 3a 20 20 20 20 2f | case '|T': /|
|000042c0| 2a 20 54 41 42 20 63 68 | 61 72 61 63 74 65 72 20 |* TAB ch|aracter |
|000042d0| 69 6e 73 65 72 74 20 2a | 2f 0d 09 09 09 09 6f 75 |insert *|/.....ou|
|000042e0| 74 63 68 61 72 28 27 5c | 74 27 2c 20 66 70 29 3b |tchar('\|t', fp);|
|000042f0| 20 62 72 65 61 6b 3b 0d | 09 09 09 20 20 20 20 63 | break;.|... c|
|00004300| 61 73 65 20 27 4e 27 3a | 20 20 20 20 2f 2a 20 4e |ase 'N':| /* N|
|00004310| 45 57 20 4c 49 4e 45 20 | 63 68 61 72 61 63 74 65 |EW LINE |characte|
|00004320| 72 20 69 6e 73 65 72 74 | 20 2a 2f 0d 09 09 09 09 |r insert| */.....|
|00004330| 6f 75 74 63 68 61 72 28 | 27 5c 6e 27 2c 20 66 70 |outchar(|'\n', fp|
|00004340| 29 3b 20 62 72 65 61 6b | 3b 0d 09 09 09 20 20 20 |); break|;.... |
|00004350| 20 63 61 73 65 20 27 43 | 27 3a 20 20 20 20 2f 2a | case 'C|': /*|
|00004360| 20 63 6f 6c 75 6d 6e 20 | 61 64 76 61 6e 63 65 20 | column |advance |
|00004370| 2a 2f 0d 09 09 09 09 6e | 20 3d 20 63 6e 6e 3b 09 |*/.....n| = cnn;.|
|00004380| 2f 2a 20 6e 75 6d 62 65 | 72 20 62 75 66 66 65 72 |/* numbe|r buffer|
|00004390| 20 66 6f 72 20 74 61 72 | 67 65 74 20 63 6f 6c 75 | for tar|get colu|
|000043a0| 6d 6e 20 70 6f 73 20 2a | 2f 0d 09 09 09 09 77 68 |mn pos *|/.....wh|
|000043b0| 69 6c 65 28 28 2a 6e 20 | 3d 20 2a 70 29 20 3e 3d |ile((*n |= *p) >=|
|000043c0| 27 30 27 20 26 26 20 2a | 6e 20 3c 3d 27 39 27 29 |'0' && *|n <='9')|
|000043d0| 20 7b 0d 09 09 09 09 20 | 20 20 20 6e 2b 2b 3b 20 | {..... | n++; |
|000043e0| 70 2b 2b 3b 0d 09 09 09 | 09 7d 0d 09 09 09 09 2a |p++;....|.}.....*|
|000043f0| 6e 20 3d 20 27 5c 30 27 | 3b 09 09 2f 2a 20 73 74 |n = '\0'|;../* st|
|00004400| 72 69 6e 67 20 74 65 72 | 6d 69 6e 61 74 6f 72 20 |ring ter|minator |
|00004410| 2a 2f 0d 09 09 09 09 63 | 74 6f 20 3d 20 61 74 6f |*/.....c|to = ato|
|00004420| 69 28 63 6e 6e 29 3b 09 | 2f 2a 20 6d 6f 76 65 20 |i(cnn);.|/* move |
|00004430| 74 6f 20 63 74 6f 20 2a | 2f 0d 09 09 09 09 69 66 |to cto *|/.....if|
|00004440| 28 63 74 6f 20 3c 20 31 | 20 29 20 63 74 6f 20 3d |(cto < 1| ) cto =|
|00004450| 20 31 3b 0d 09 09 09 09 | 69 66 28 28 63 65 6e 64 | 1;.....|if((cend|
|00004460| 20 3d 20 63 74 6f 2d 63 | 6f 6c 75 6d 6e 29 20 3e | = cto-c|olumn) >|
|00004470| 20 30 29 20 7b 0d 09 09 | 09 09 20 20 20 20 66 6f | 0) {...|.. fo|
|00004480| 72 28 69 3d 30 3b 20 69 | 3c 63 65 6e 64 3b 20 69 |r(i=0; i|<cend; i|
|00004490| 2b 2b 29 0d 09 09 09 09 | 09 6f 75 74 63 68 61 72 |++).....|.outchar|
|000044a0| 28 27 20 27 2c 20 66 70 | 29 3b 0d 09 09 09 09 7d |(' ', fp|);.....}|
|000044b0| 0d 09 09 09 09 65 6c 73 | 65 20 20 20 20 6f 75 74 |.....els|e out|
|000044c0| 63 68 61 72 28 27 20 27 | 2c 20 66 70 29 3b 0d 09 |char(' '|, fp);..|
|000044d0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 20 20 20 |...break|;.... |
|000044e0| 20 64 65 66 61 75 6c 74 | 3a 20 20 2f 2a 20 54 68 | default|: /* Th|
|000044f0| 69 73 20 73 68 6f 75 6c | 64 6e 27 74 20 68 61 70 |is shoul|dn't hap|
|00004500| 70 65 6e 20 2a 2f 0d 09 | 09 09 09 66 70 72 69 6e |pen */..|...fprin|
|00004510| 74 66 28 73 74 64 65 72 | 72 2c 20 22 5c 6e 49 6c |tf(stder|r, "\nIl|
|00004520| 6c 65 67 61 6c 20 76 61 | 72 69 61 62 6c 65 20 5c |legal va|riable \|
|00004530| 22 24 25 63 5c 22 20 69 | 6e 20 5c 22 25 73 5c 22 |"$%c\" i|n \"%s\"|
|00004540| 2e 5c 6e 22 2c 0d 09 09 | 09 09 09 09 63 6d 64 2c |.\n",...|....cmd,|
|00004550| 20 66 6d 74 66 69 6c 65 | 29 3b 0d 23 69 66 64 65 | fmtfile|);.#ifde|
|00004560| 66 20 4d 41 43 0d 09 09 | 09 09 20 20 20 20 70 72 |f MAC...|.. pr|
|00004570| 69 6e 74 66 28 22 43 6c | 69 63 6b 20 74 68 69 73 |intf("Cl|ick this|
|00004580| 20 77 69 6e 64 6f 77 20 | 74 6f 20 65 78 69 74 3a | window |to exit:|
|00004590| 5c 6e 22 29 3b 0d 09 09 | 09 09 20 20 20 20 46 6c |\n");...|.. Fl|
|000045a0| 75 73 68 45 76 65 6e 74 | 73 28 65 76 65 72 79 45 |ushEvent|s(everyE|
|000045b0| 76 65 6e 74 2c 30 29 3b | 0d 09 09 09 09 20 20 20 |vent,0);|..... |
|000045c0| 20 77 68 69 6c 65 28 21 | 47 65 74 4e 65 78 74 45 | while(!|GetNextE|
|000045d0| 76 65 6e 74 28 65 76 65 | 72 79 45 76 65 6e 74 2c |vent(eve|ryEvent,|
|000045e0| 26 65 76 65 6e 74 29 29 | 20 3b 0d 23 65 6e 64 69 |&event))| ;.#endi|
|000045f0| 66 0d 09 09 09 09 65 78 | 69 74 28 35 29 3b 0d 09 |f.....ex|it(5);..|
|00004600| 09 09 7d 20 2f 2a 20 65 | 6e 64 20 73 77 69 74 63 |..} /* e|nd switc|
|00004610| 68 28 63 6d 64 29 20 2a | 2f 0d 09 09 09 62 72 65 |h(cmd) *|/....bre|
|00004620| 61 6b 3b 0d 0d 09 09 64 | 65 66 61 75 6c 74 3a 20 |ak;....d|efault: |
|00004630| 2f 2a 20 72 65 67 75 6c | 61 72 20 61 73 63 69 69 |/* regul|ar ascii|
|00004640| 20 2a 2f 0d 09 09 09 6f | 75 74 63 68 61 72 28 63 | */....o|utchar(c|
|00004650| 68 2c 20 66 70 29 3b 0d | 09 09 09 62 72 65 61 6b |h, fp);.|...break|
|00004660| 3b 0d 09 20 20 20 20 7d | 20 2f 2a 20 65 6e 64 20 |;.. }| /* end |
|00004670| 73 77 69 74 63 68 28 63 | 68 29 20 2a 2f 0d 09 7d |switch(c|h) */..}|
|00004680| 20 2f 2a 20 65 6e 64 20 | 77 68 69 6c 65 28 28 63 | /* end |while((c|
|00004690| 68 20 3d 20 2a 70 29 20 | 2e 2e 2e 20 2a 2f 0d 0d |h = *p) |... */..|
|000046a0| 2f 2a 0d 09 66 70 72 69 | 6e 74 66 28 66 70 2c 20 |/*..fpri|ntf(fp, |
|000046b0| 22 25 73 20 25 73 20 28 | 25 73 29 20 3c 25 73 3e |"%s %s (|%s) <%s>|
|000046c0| 5c 6e 22 2c 0d 09 09 09 | 6c 61 73 74 6e 61 6d 65 |\n",....|lastname|
|000046d0| 2c 20 66 69 72 73 74 69 | 6e 69 2c 20 61 66 66 69 |, firsti|ni, affi|
|000046e0| 6c 69 61 74 69 6f 6e 2c | 20 65 6d 61 64 64 72 65 |liation,| emaddre|
|000046f0| 73 73 29 3b 0d 2a 2f 0d | 23 69 66 6e 64 65 66 20 |ss);.*/.|#ifndef |
|00004700| 5f 5f 53 54 44 43 5f 5f | 0d 72 65 74 75 72 6e 28 |__STDC__|.return(|
|00004710| 30 29 3b 0d 23 65 6e 64 | 69 66 0d 7d 0d 0d 0d 23 |0);.#end|if.}...#|
|00004720| 69 66 64 65 66 20 5f 5f | 53 54 44 43 5f 5f 0d 76 |ifdef __|STDC__.v|
|00004730| 6f 69 64 20 6d 61 69 6e | 28 69 6e 74 20 61 72 67 |oid main|(int arg|
|00004740| 63 2c 20 63 68 61 72 20 | 2a 61 72 67 76 5b 5d 29 |c, char |*argv[])|
|00004750| 0d 23 65 6c 73 65 0d 6d | 61 69 6e 28 61 72 67 63 |.#else.m|ain(argc|
|00004760| 2c 20 61 72 67 76 29 0d | 69 6e 74 20 61 72 67 63 |, argv).|int argc|
|00004770| 3b 0d 63 68 61 72 20 2a | 61 72 67 76 5b 5d 3b 0d |;.char *|argv[];.|
|00004780| 23 65 6e 64 69 66 0d 7b | 0d 46 49 4c 45 20 2a 66 |#endif.{|.FILE *f|
|00004790| 70 69 2c 20 2a 66 70 66 | 2c 20 2a 66 70 6f 3b 0d |pi, *fpf|, *fpo;.|
|000047a0| 63 68 61 72 20 2a 62 70 | 74 72 2c 20 2a 65 70 74 |char *bp|tr, *ept|
|000047b0| 72 3b 0d 69 6e 74 20 63 | 3b 0d 69 6e 74 20 63 68 |r;.int c|;.int ch|
|000047c0| 61 72 63 6e 74 3b 0d 69 | 6e 74 20 71 75 6f 74 65 |arcnt;.i|nt quote|
|000047d0| 3b 09 2f 2a 20 70 72 6f | 6c 6f 67 2c 20 65 70 69 |;./* pro|log, epi|
|000047e0| 6c 6f 67 20 71 75 6f 74 | 65 20 63 68 61 72 20 2a |log quot|e char *|
|000047f0| 2f 0d 23 69 66 64 65 66 | 20 4d 41 43 0d 20 20 20 |/.#ifdef| MAC. |
|00004800| 20 50 6f 69 6e 74 20 77 | 68 65 72 65 3d 7b 32 30 | Point w|here={20|
|00004810| 30 2c 31 30 30 7d 3b 0d | 20 20 20 20 53 46 52 65 |0,100};.| SFRe|
|00004820| 70 6c 79 09 72 65 70 6c | 79 3b 0d 20 20 20 20 63 |ply.repl|y;. c|
|00004830| 68 61 72 20 73 74 72 69 | 6e 67 5b 32 35 36 5d 3b |har stri|ng[256];|
|00004840| 0d 20 20 20 20 2f 2a 20 | 54 68 65 20 63 6f 6e 76 |. /* |The conv|
|00004850| 65 6e 74 69 6f 6e 20 6f | 66 20 73 74 6f 72 69 6e |ention o|f storin|
|00004860| 67 20 66 6f 75 72 20 63 | 68 61 72 61 63 74 65 72 |g four c|haracter|
|00004870| 73 20 69 6e 20 61 20 6c | 6f 6e 67 2c 20 61 6e 64 |s in a l|ong, and|
|00004880| 20 6f 66 20 73 70 65 63 | 69 66 79 69 6e 67 0d 20 | of spec|ifying. |
|00004890| 20 20 20 74 68 65 6d 20 | 77 69 74 68 20 73 69 6e | them |with sin|
|000048a0| 67 6c 65 20 71 75 6f 74 | 65 73 20 69 73 20 6e 6f |gle quot|es is no|
|000048b0| 74 20 70 61 72 74 20 6f | 66 20 73 74 61 6e 64 61 |t part o|f standa|
|000048c0| 72 64 20 43 2c 20 62 75 | 74 20 69 73 20 61 20 73 |rd C, bu|t is a s|
|000048d0| 74 61 6e 64 61 72 64 0d | 20 20 20 20 4d 61 63 69 |tandard.| Maci|
|000048e0| 6e 74 6f 73 68 20 65 78 | 74 65 6e 73 69 6f 6e 20 |ntosh ex|tension |
|000048f0| 74 6f 20 43 2e 20 2a 2f | 0d 20 20 20 20 4f 53 54 |to C. */|. OST|
|00004900| 79 70 65 20 74 79 70 65 | 3d 27 54 45 58 54 27 2c |ype type|='TEXT',|
|00004910| 63 72 65 61 74 6f 72 3d | 27 4d 41 43 41 27 3b 09 |creator=|'MACA';.|
|00004920| 2f 2a 20 64 65 66 61 75 | 6c 74 20 69 73 20 4d 61 |/* defau|lt is Ma|
|00004930| 63 57 72 69 74 65 20 74 | 65 78 74 20 66 69 6c 65 |cWrite t|ext file|
|00004940| 20 2a 2f 0d 20 20 20 20 | 73 68 6f 72 74 20 6f 75 | */. |short ou|
|00004950| 74 70 75 74 56 52 65 66 | 4e 75 6d 2c 76 52 65 66 |tputVRef|Num,vRef|
|00004960| 4e 75 6d 3b 0d 23 65 6e | 64 69 66 0d 09 09 0d 23 |Num;.#en|dif....#|
|00004970| 69 66 64 65 66 20 4d 41 | 43 0d 09 20 20 20 20 49 |ifdef MA|C.. I|
|00004980| 6e 69 74 47 72 61 66 28 | 26 71 64 2e 74 68 65 50 |nitGraf(|&qd.theP|
|00004990| 6f 72 74 29 3b 0d 09 20 | 20 20 20 49 6e 69 74 46 |ort);.. | InitF|
|000049a0| 6f 6e 74 73 28 29 3b 0d | 09 20 20 20 20 49 6e 69 |onts();.|. Ini|
|000049b0| 74 57 69 6e 64 6f 77 73 | 28 29 3b 0d 09 20 20 20 |tWindows|();.. |
|000049c0| 20 49 6e 69 74 43 75 72 | 73 6f 72 28 29 3b 0d 09 | InitCur|sor();..|
|000049d0| 20 20 20 20 61 72 67 63 | 3d 33 3b 0d 23 65 6e 64 | argc|=3;.#end|
|000049e0| 69 66 0d 09 69 66 28 61 | 72 67 63 20 21 3d 20 33 |if..if(a|rgc != 3|
|000049f0| 20 26 26 20 61 72 67 63 | 20 21 3d 20 34 29 20 75 | && argc| != 4) u|
|00004a00| 73 61 67 65 28 29 3b 0d | 09 73 74 75 70 69 64 28 |sage();.|.stupid(|
|00004a10| 29 3b 0d 0d 09 2f 2a 20 | 49 6e 70 75 74 20 66 69 |);.../* |Input fi|
|00004a20| 6c 65 20 2d 2d 20 4f 72 | 69 67 69 6e 61 6c 20 43 |le -- Or|iginal C|
|00004a30| 56 4e 65 74 20 6d 65 6d | 62 65 72 20 6c 69 73 74 |VNet mem|ber list|
|00004a40| 20 66 69 6c 65 20 2a 2f | 0d 23 69 66 64 65 66 20 | file */|.#ifdef |
|00004a50| 4d 41 43 0d 09 20 20 20 | 20 70 72 69 6e 74 66 28 |MAC.. | printf(|
|00004a60| 22 57 68 65 72 65 20 69 | 73 20 74 68 65 20 43 56 |"Where i|s the CV|
|00004a70| 4e 65 74 20 6d 61 73 74 | 65 72 20 6c 69 73 74 3f |Net mast|er list?|
|00004a80| 5c 6e 22 29 3b 0d 09 20 | 20 20 20 70 72 69 6e 74 |\n");.. | print|
|00004a90| 66 28 22 43 6c 69 63 6b | 20 74 68 69 73 20 77 69 |f("Click| this wi|
|00004aa0| 6e 64 6f 77 20 74 6f 20 | 63 6f 6e 74 69 6e 75 65 |ndow to |continue|
|00004ab0| 3a 5c 6e 22 29 3b 0d 09 | 20 20 20 20 46 6c 75 73 |:\n");..| Flus|
|00004ac0| 68 45 76 65 6e 74 73 28 | 65 76 65 72 79 45 76 65 |hEvents(|everyEve|
|00004ad0| 6e 74 2c 30 29 3b 0d 09 | 20 20 20 20 77 68 69 6c |nt,0);..| whil|
|00004ae0| 65 28 21 47 65 74 4e 65 | 78 74 45 76 65 6e 74 28 |e(!GetNe|xtEvent(|
|00004af0| 65 76 65 72 79 45 76 65 | 6e 74 2c 26 65 76 65 6e |everyEve|nt,&even|
|00004b00| 74 29 29 20 3b 0d 09 20 | 20 20 20 53 46 47 65 74 |t)) ;.. | SFGet|
|00004b10| 46 69 6c 65 28 77 68 65 | 72 65 2c 4e 55 4c 4c 2c |File(whe|re,NULL,|
|00004b20| 4e 55 4c 4c 2c 31 2c 26 | 74 79 70 65 2c 4e 55 4c |NULL,1,&|type,NUL|
|00004b30| 4c 2c 26 72 65 70 6c 79 | 29 3b 0d 09 20 20 20 20 |L,&reply|);.. |
|00004b40| 69 66 28 21 72 65 70 6c | 79 2e 67 6f 6f 64 29 75 |if(!repl|y.good)u|
|00004b50| 73 61 67 65 28 29 3b 0d | 09 20 20 20 20 70 32 63 |sage();.|. p2c|
|00004b60| 73 74 72 28 72 65 70 6c | 79 2e 66 4e 61 6d 65 29 |str(repl|y.fName)|
|00004b70| 3b 0d 09 20 20 20 20 61 | 72 67 76 5b 31 5d 3d 6d |;.. a|rgv[1]=m|
|00004b80| 61 6c 6c 6f 63 28 31 2b | 73 74 72 6c 65 6e 28 28 |alloc(1+|strlen((|
|00004b90| 63 68 61 72 20 2a 29 72 | 65 70 6c 79 2e 66 4e 61 |char *)r|eply.fNa|
|00004ba0| 6d 65 29 29 3b 0d 09 20 | 20 20 20 73 74 72 63 70 |me));.. | strcp|
|00004bb0| 79 28 61 72 67 76 5b 31 | 5d 2c 28 63 68 61 72 20 |y(argv[1|],(char |
|00004bc0| 2a 29 72 65 70 6c 79 2e | 66 4e 61 6d 65 29 3b 0d |*)reply.|fName);.|
|00004bd0| 09 20 20 20 20 63 32 70 | 73 74 72 28 28 63 68 61 |. c2p|str((cha|
|00004be0| 72 20 2a 29 72 65 70 6c | 79 2e 66 4e 61 6d 65 29 |r *)repl|y.fName)|
|00004bf0| 3b 0d 09 09 53 65 74 56 | 6f 6c 28 4e 55 4c 4c 2c |;...SetV|ol(NULL,|
|00004c00| 72 65 70 6c 79 2e 76 52 | 65 66 4e 75 6d 29 3b 09 |reply.vR|efNum);.|
|00004c10| 2f 2a 20 6c 6f 6f 6b 20 | 69 6e 20 74 68 61 74 20 |/* look |in that |
|00004c20| 66 6f 6c 64 65 72 20 2a | 2f 0d 23 65 6e 64 69 66 |folder *|/.#endif|
|00004c30| 0d 09 69 66 28 28 66 70 | 69 20 3d 20 66 6f 70 65 |..if((fp|i = fope|
|00004c40| 6e 28 61 72 67 76 5b 31 | 5d 2c 20 22 72 22 29 29 |n(argv[1|], "r"))|
|00004c50| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0d 09 20 20 20 | == NULL|) {.. |
|00004c60| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00004c70| 20 22 43 61 6e 27 74 20 | 6f 70 65 6e 20 66 69 6c | "Can't |open fil|
|00004c80| 65 20 5c 22 25 73 5c 22 | 2e 5c 6e 22 2c 20 61 72 |e \"%s\"|.\n", ar|
|00004c90| 67 76 5b 31 5d 29 3b 0d | 23 69 66 64 65 66 20 4d |gv[1]);.|#ifdef M|
|00004ca0| 41 43 0d 09 09 70 72 69 | 6e 74 66 28 22 43 6c 69 |AC...pri|ntf("Cli|
|00004cb0| 63 6b 20 74 68 69 73 20 | 77 69 6e 64 6f 77 20 74 |ck this |window t|
|00004cc0| 6f 20 65 78 69 74 3a 5c | 6e 22 29 3b 0d 09 09 46 |o exit:\|n");...F|
|00004cd0| 6c 75 73 68 45 76 65 6e | 74 73 28 65 76 65 72 79 |lushEven|ts(every|
|00004ce0| 45 76 65 6e 74 2c 30 29 | 3b 0d 09 09 77 68 69 6c |Event,0)|;...whil|
|00004cf0| 65 28 21 47 65 74 4e 65 | 78 74 45 76 65 6e 74 28 |e(!GetNe|xtEvent(|
|00004d00| 65 76 65 72 79 45 76 65 | 6e 74 2c 26 65 76 65 6e |everyEve|nt,&even|
|00004d10| 74 29 29 20 3b 0d 23 65 | 6e 64 69 66 0d 09 20 20 |t)) ;.#e|ndif.. |
|00004d20| 20 20 65 78 69 74 28 32 | 29 3b 0d 09 7d 0d 0d 09 | exit(2|);..}...|
|00004d30| 2f 2a 20 4f 75 74 70 75 | 74 20 66 69 6c 65 2e 20 |/* Outpu|t file. |
|00004d40| 43 68 65 63 6b 20 74 68 | 61 74 20 77 65 20 61 72 |Check th|at we ar|
|00004d50| 65 20 6e 6f 74 20 77 69 | 70 69 6e 67 20 6f 75 74 |e not wi|ping out|
|00004d60| 20 61 20 2a 2e 66 6d 74 | 20 66 69 6c 65 2e 20 2a | a *.fmt| file. *|
|00004d70| 2f 0d 23 69 66 64 65 66 | 20 4d 41 43 0d 09 20 20 |/.#ifdef| MAC.. |
|00004d80| 20 20 73 70 72 69 6e 74 | 66 28 73 74 72 69 6e 67 | sprint|f(string|
|00004d90| 2c 22 25 73 2e 6f 75 74 | 22 2c 61 72 67 76 5b 31 |,"%s.out|",argv[1|
|00004da0| 5d 29 3b 0d 09 20 20 20 | 20 53 46 50 75 74 46 69 |]);.. | SFPutFi|
|00004db0| 6c 65 28 77 68 65 72 65 | 2c 22 5c 70 53 61 76 65 |le(where|,"\pSave|
|00004dc0| 20 6e 65 77 20 43 56 4e | 65 74 20 6c 69 73 74 20 | new CVN|et list |
|00004dd0| 61 73 3a 22 2c 63 32 70 | 73 74 72 28 73 74 72 69 |as:",c2p|str(stri|
|00004de0| 6e 67 29 2c 4e 55 4c 4c | 2c 26 72 65 70 6c 79 29 |ng),NULL|,&reply)|
|00004df0| 3b 0d 09 20 20 20 20 69 | 66 28 21 72 65 70 6c 79 |;.. i|f(!reply|
|00004e00| 2e 67 6f 6f 64 29 75 73 | 61 67 65 28 29 3b 0d 09 |.good)us|age();..|
|00004e10| 20 20 20 20 70 32 63 73 | 74 72 28 72 65 70 6c 79 | p2cs|tr(reply|
|00004e20| 2e 66 4e 61 6d 65 29 3b | 0d 09 20 20 20 20 61 72 |.fName);|.. ar|
|00004e30| 67 76 5b 32 5d 3d 6d 61 | 6c 6c 6f 63 28 31 2b 73 |gv[2]=ma|lloc(1+s|
|00004e40| 74 72 6c 65 6e 28 28 63 | 68 61 72 20 2a 29 72 65 |trlen((c|har *)re|
|00004e50| 70 6c 79 2e 66 4e 61 6d | 65 29 29 3b 0d 09 20 20 |ply.fNam|e));.. |
|00004e60| 20 20 73 74 72 63 70 79 | 28 61 72 67 76 5b 32 5d | strcpy|(argv[2]|
|00004e70| 2c 28 63 68 61 72 20 2a | 29 72 65 70 6c 79 2e 66 |,(char *|)reply.f|
|00004e80| 4e 61 6d 65 29 3b 0d 09 | 20 20 20 20 63 32 70 73 |Name);..| c2ps|
|00004e90| 74 72 28 28 63 68 61 72 | 20 2a 29 72 65 70 6c 79 |tr((char| *)reply|
|00004ea0| 2e 66 4e 61 6d 65 29 3b | 0d 09 09 53 65 74 56 6f |.fName);|...SetVo|
|00004eb0| 6c 28 4e 55 4c 4c 2c 72 | 65 70 6c 79 2e 76 52 65 |l(NULL,r|eply.vRe|
|00004ec0| 66 4e 75 6d 29 3b 09 2f | 2a 20 6c 6f 6f 6b 20 69 |fNum);./|* look i|
|00004ed0| 6e 20 74 68 61 74 20 66 | 6f 6c 64 65 72 20 2a 2f |n that f|older */|
|00004ee0| 0d 09 20 20 20 20 6f 75 | 74 70 75 74 56 52 65 66 |.. ou|tputVRef|
|00004ef0| 4e 75 6d 3d 72 65 70 6c | 79 2e 76 52 65 66 4e 75 |Num=repl|y.vRefNu|
|00004f00| 6d 3b 0d 23 65 6e 64 69 | 66 0d 09 62 70 74 72 20 |m;.#endi|f..bptr |
|00004f10| 3d 20 65 70 74 72 20 3d | 20 61 72 67 76 5b 32 5d |= eptr =| argv[2]|
|00004f20| 3b 0d 09 77 68 69 6c 65 | 28 2a 65 70 74 72 20 21 |;..while|(*eptr !|
|00004f30| 3d 20 27 5c 30 27 29 20 | 65 70 74 72 2b 2b 3b 0d |= '\0') |eptr++;.|
|00004f40| 09 77 68 69 6c 65 28 2a | 62 70 74 72 20 21 3d 20 |.while(*|bptr != |
|00004f50| 27 2e 27 20 26 26 20 2a | 62 70 74 72 20 21 3d 20 |'.' && *|bptr != |
|00004f60| 27 5c 30 27 29 20 62 70 | 74 72 2b 2b 3b 0d 09 69 |'\0') bp|tr++;..i|
|00004f70| 66 28 62 70 74 72 20 21 | 3d 20 65 70 74 72 29 20 |f(bptr !|= eptr) |
|00004f80| 7b 0d 09 20 20 20 20 69 | 66 28 73 74 72 6e 63 6d |{.. i|f(strncm|
|00004f90| 70 28 62 70 74 72 2c 20 | 22 2e 66 6d 74 22 2c 20 |p(bptr, |".fmt", |
|00004fa0| 34 29 20 3d 3d 20 30 29 | 20 7b 0d 09 09 66 70 72 |4) == 0)| {...fpr|
|00004fb0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 59 6f |intf(std|err, "Yo|
|00004fc0| 75 20 73 68 6f 75 6c 64 | 6e 27 74 20 62 65 20 77 |u should|n't be w|
|00004fd0| 72 69 74 69 6e 67 20 74 | 6f 20 5c 22 25 73 5c 22 |riting t|o \"%s\"|
|00004fe0| 2e 5c 6e 22 2c 20 61 72 | 67 76 5b 32 5d 29 3b 0d |.\n", ar|gv[2]);.|
|00004ff0| 23 69 66 64 65 66 20 4d | 41 43 0d 09 09 20 20 20 |#ifdef M|AC... |
|00005000| 20 70 72 69 6e 74 66 28 | 22 43 6c 69 63 6b 20 74 | printf(|"Click t|
|00005010| 68 69 73 20 77 69 6e 64 | 6f 77 20 74 6f 20 65 78 |his wind|ow to ex|
|00005020| 69 74 3a 5c 6e 22 29 3b | 0d 09 09 20 20 20 20 46 |it:\n");|... F|
|00005030| 6c 75 73 68 45 76 65 6e | 74 73 28 65 76 65 72 79 |lushEven|ts(every|
|00005040| 45 76 65 6e 74 2c 30 29 | 3b 0d 09 09 20 20 20 20 |Event,0)|;... |
|00005050| 77 68 69 6c 65 28 21 47 | 65 74 4e 65 78 74 45 76 |while(!G|etNextEv|
|00005060| 65 6e 74 28 65 76 65 72 | 79 45 76 65 6e 74 2c 26 |ent(ever|yEvent,&|
|00005070| 65 76 65 6e 74 29 29 20 | 3b 0d 23 65 6e 64 69 66 |event)) |;.#endif|
|00005080| 0d 09 09 65 78 69 74 28 | 31 29 3b 0d 09 20 20 20 |...exit(|1);.. |
|00005090| 20 7d 0d 09 7d 0d 09 69 | 66 28 28 66 70 6f 20 3d | }..}..i|f((fpo =|
|000050a0| 20 66 6f 70 65 6e 28 61 | 72 67 76 5b 32 5d 2c 20 | fopen(a|rgv[2], |
|000050b0| 22 77 22 29 29 20 3d 3d | 20 4e 55 4c 4c 29 20 7b |"w")) ==| NULL) {|
|000050c0| 0d 09 20 20 20 20 66 70 | 72 69 6e 74 66 28 73 74 |.. fp|rintf(st|
|000050d0| 64 65 72 72 2c 20 22 43 | 61 6e 27 74 20 6f 70 65 |derr, "C|an't ope|
|000050e0| 6e 20 6f 75 74 70 75 74 | 20 66 69 6c 65 20 5c 22 |n output| file \"|
|000050f0| 25 73 5c 22 2e 5c 6e 22 | 2c 20 61 72 67 76 5b 32 |%s\".\n"|, argv[2|
|00005100| 5d 29 3b 0d 23 69 66 64 | 65 66 20 4d 41 43 0d 09 |]);.#ifd|ef MAC..|
|00005110| 09 70 72 69 6e 74 66 28 | 22 43 6c 69 63 6b 20 74 |.printf(|"Click t|
|00005120| 68 69 73 20 77 69 6e 64 | 6f 77 20 74 6f 20 65 78 |his wind|ow to ex|
|00005130| 69 74 3a 5c 6e 22 29 3b | 0d 09 09 46 6c 75 73 68 |it:\n");|...Flush|
|00005140| 45 76 65 6e 74 73 28 65 | 76 65 72 79 45 76 65 6e |Events(e|veryEven|
|00005150| 74 2c 30 29 3b 0d 09 09 | 77 68 69 6c 65 28 21 47 |t,0);...|while(!G|
|00005160| 65 74 4e 65 78 74 45 76 | 65 6e 74 28 65 76 65 72 |etNextEv|ent(ever|
|00005170| 79 45 76 65 6e 74 2c 26 | 65 76 65 6e 74 29 29 20 |yEvent,&|event)) |
|00005180| 3b 0d 23 65 6e 64 69 66 | 0d 09 20 20 20 20 65 78 |;.#endif|.. ex|
|00005190| 69 74 28 33 29 3b 0d 09 | 7d 0d 0d 09 2f 2a 20 46 |it(3);..|}.../* F|
|000051a0| 6f 72 6d 61 74 20 66 69 | 6c 65 2e 0d 09 20 2a 20 |ormat fi|le... * |
|000051b0| 52 65 61 64 20 74 68 65 | 20 66 69 72 73 74 20 66 |Read the| first f|
|000051c0| 65 77 20 6c 69 6e 65 73 | 2e 0d 09 20 2a 20 54 68 |ew lines|... * Th|
|000051d0| 65 20 72 65 73 74 20 6f | 66 20 74 68 65 20 66 69 |e rest o|f the fi|
|000051e0| 6c 65 20 77 69 6c 6c 20 | 62 65 20 69 67 6e 6f 72 |le will |be ignor|
|000051f0| 65 64 20 61 6e 64 20 6d | 61 79 20 62 65 20 75 73 |ed and m|ay be us|
|00005200| 65 64 20 74 6f 20 64 65 | 73 63 72 69 62 65 0d 09 |ed to de|scribe..|
|00005210| 20 2a 20 74 68 65 20 66 | 6f 72 6d 61 74 20 73 70 | * the f|ormat sp|
|00005220| 65 63 69 66 69 65 64 20 | 69 6e 20 74 68 65 20 66 |ecified |in the f|
|00005230| 69 6c 65 2e 0d 09 20 2a | 2f 0d 09 69 66 28 61 72 |ile... *|/..if(ar|
|00005240| 67 63 20 3d 3d 20 34 29 | 20 66 6d 74 66 69 6c 65 |gc == 4)| fmtfile|
|00005250| 20 3d 20 61 72 67 76 5b | 33 5d 3b 09 2f 2a 20 6f | = argv[|3];./* o|
|00005260| 70 74 69 6f 6e 61 6c 20 | 74 68 69 72 64 20 61 72 |ptional |third ar|
|00005270| 67 75 6d 65 6e 74 20 67 | 69 76 65 6e 20 66 6f 72 |gument g|iven for|
|00005280| 20 66 6d 74 20 2a 2f 0d | 09 65 6c 73 65 20 20 20 | fmt */.|.else |
|00005290| 20 20 20 20 20 20 20 66 | 6d 74 66 69 6c 65 20 3d | f|mtfile =|
|000052a0| 20 64 65 66 66 69 6c 65 | 3b 09 2f 2a 20 64 65 66 | deffile|;./* def|
|000052b0| 61 75 6c 74 20 2a 2f 0d | 09 66 70 66 20 3d 20 66 |ault */.|.fpf = f|
|000052c0| 6f 70 65 6e 28 66 6d 74 | 66 69 6c 65 2c 20 22 72 |open(fmt|file, "r|
|000052d0| 22 29 3b 0d 23 69 66 64 | 65 66 20 4d 41 43 0d 09 |");.#ifd|ef MAC..|
|000052e0| 20 20 20 20 69 66 28 66 | 70 66 3d 3d 4e 55 4c 4c | if(f|pf==NULL|
|000052f0| 29 7b 0d 09 09 73 70 72 | 69 6e 74 66 28 73 74 72 |){...spr|intf(str|
|00005300| 69 6e 67 2c 22 43 6f 75 | 6c 64 6e 27 74 20 66 69 |ing,"Cou|ldn't fi|
|00005310| 6e 64 20 5c 22 25 73 5c | 22 2e 20 50 6c 65 61 73 |nd \"%s\|". Pleas|
|00005320| 65 20 63 68 6f 6f 73 65 | 20 61 20 66 6f 72 6d 61 |e choose| a forma|
|00005330| 74 20 66 69 6c 65 2e 22 | 2c 66 6d 74 66 69 6c 65 |t file."|,fmtfile|
|00005340| 29 3b 0d 09 09 50 61 72 | 61 6d 54 65 78 74 28 63 |);...Par|amText(c|
|00005350| 32 70 73 74 72 28 73 74 | 72 69 6e 67 29 2c 4e 55 |2pstr(st|ring),NU|
|00005360| 4c 4c 2c 4e 55 4c 4c 2c | 4e 55 4c 4c 29 3b 0d 09 |LL,NULL,|NULL);..|
|00005370| 09 41 6c 65 72 74 28 2d | 31 36 34 30 35 2c 4e 55 |.Alert(-|16405,NU|
|00005380| 4c 4c 29 3b 0d 09 20 20 | 20 20 53 46 47 65 74 46 |LL);.. | SFGetF|
|00005390| 69 6c 65 28 77 68 65 72 | 65 2c 4e 55 4c 4c 2c 4e |ile(wher|e,NULL,N|
|000053a0| 55 4c 4c 2c 31 2c 26 74 | 79 70 65 2c 4e 55 4c 4c |ULL,1,&t|ype,NULL|
|000053b0| 2c 26 72 65 70 6c 79 29 | 3b 0d 09 09 69 66 28 21 |,&reply)|;...if(!|
|000053c0| 72 65 70 6c 79 2e 67 6f | 6f 64 29 75 73 61 67 65 |reply.go|od)usage|
|000053d0| 28 29 3b 0d 09 09 70 32 | 63 73 74 72 28 72 65 70 |();...p2|cstr(rep|
|000053e0| 6c 79 2e 66 4e 61 6d 65 | 29 3b 0d 09 09 66 6d 74 |ly.fName|);...fmt|
|000053f0| 66 69 6c 65 3d 6d 61 6c | 6c 6f 63 28 31 2b 73 74 |file=mal|loc(1+st|
|00005400| 72 6c 65 6e 28 28 63 68 | 61 72 20 2a 29 72 65 70 |rlen((ch|ar *)rep|
|00005410| 6c 79 2e 66 4e 61 6d 65 | 29 29 3b 0d 09 09 73 74 |ly.fName|));...st|
|00005420| 72 63 70 79 28 66 6d 74 | 66 69 6c 65 2c 28 63 68 |rcpy(fmt|file,(ch|
|00005430| 61 72 20 2a 29 72 65 70 | 6c 79 2e 66 4e 61 6d 65 |ar *)rep|ly.fName|
|00005440| 29 3b 0d 09 09 63 32 70 | 73 74 72 28 28 63 68 61 |);...c2p|str((cha|
|00005450| 72 20 2a 29 72 65 70 6c | 79 2e 66 4e 61 6d 65 29 |r *)repl|y.fName)|
|00005460| 3b 0d 09 09 53 65 74 56 | 6f 6c 28 4e 55 4c 4c 2c |;...SetV|ol(NULL,|
|00005470| 72 65 70 6c 79 2e 76 52 | 65 66 4e 75 6d 29 3b 09 |reply.vR|efNum);.|
|00005480| 2f 2a 20 6c 6f 6f 6b 20 | 69 6e 20 74 68 61 74 20 |/* look |in that |
|00005490| 66 6f 6c 64 65 72 20 2a | 2f 0d 09 09 66 70 66 20 |folder *|/...fpf |
|000054a0| 3d 20 66 6f 70 65 6e 28 | 66 6d 74 66 69 6c 65 2c |= fopen(|fmtfile,|
|000054b0| 20 22 72 22 29 3b 0d 09 | 20 20 20 20 7d 0d 23 65 | "r");..| }.#e|
|000054c0| 6e 64 69 66 0d 09 69 66 | 28 66 70 66 20 21 3d 20 |ndif..if|(fpf != |
|000054d0| 4e 55 4c 4c 29 20 7b 0d | 0d 09 20 20 20 20 2f 2a |NULL) {.|.. /*|
|000054e0| 20 52 65 61 64 20 72 65 | 63 6f 72 64 2d 66 6f 72 | Read re|cord-for|
|000054f0| 6d 61 74 20 73 74 72 69 | 6e 67 20 2a 2f 0d 09 20 |mat stri|ng */.. |
|00005500| 20 20 20 69 66 28 28 66 | 67 65 74 73 28 66 6d 74 | if((f|gets(fmt|
|00005510| 2c 20 32 35 30 2c 20 66 | 70 66 29 29 20 3d 3d 20 |, 250, f|pf)) == |
|00005520| 4e 55 4c 4c 29 20 7b 0d | 09 09 66 70 72 69 6e 74 |NULL) {.|..fprint|
|00005530| 66 28 73 74 64 65 72 72 | 2c 20 22 45 72 72 6f 72 |f(stderr|, "Error|
|00005540| 20 72 65 61 64 69 6e 67 | 20 66 6f 72 6d 61 74 20 | reading| format |
|00005550| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 20 66 69 |specific|ation fi|
|00005560| 6c 65 20 5c 22 25 73 5c | 22 2e 5c 6e 22 2c 20 66 |le \"%s\|".\n", f|
|00005570| 6d 74 66 69 6c 65 29 3b | 0d 23 69 66 64 65 66 20 |mtfile);|.#ifdef |
|00005580| 4d 41 43 0d 09 09 20 20 | 20 20 70 72 69 6e 74 66 |MAC... | printf|
|00005590| 28 22 43 6c 69 63 6b 20 | 74 68 69 73 20 77 69 6e |("Click |this win|
|000055a0| 64 6f 77 20 74 6f 20 65 | 78 69 74 3a 5c 6e 22 29 |dow to e|xit:\n")|
|000055b0| 3b 0d 09 09 20 20 20 20 | 46 6c 75 73 68 45 76 65 |;... |FlushEve|
|000055c0| 6e 74 73 28 65 76 65 72 | 79 45 76 65 6e 74 2c 30 |nts(ever|yEvent,0|
|000055d0| 29 3b 0d 09 09 20 20 20 | 20 77 68 69 6c 65 28 21 |);... | while(!|
|000055e0| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 28 65 76 65 |GetNextE|vent(eve|
|000055f0| 72 79 45 76 65 6e 74 2c | 26 65 76 65 6e 74 29 29 |ryEvent,|&event))|
|00005600| 20 3b 0d 23 65 6e 64 69 | 66 0d 09 09 65 78 69 74 | ;.#endi|f...exit|
|00005610| 28 31 29 3b 0d 09 20 20 | 20 20 7d 0d 09 20 20 20 |(1);.. | }.. |
|00005620| 20 66 4c 69 6e 65 42 75 | 66 66 65 72 5b 30 5d 3d | fLineBu|ffer[0]=|
|00005630| 30 3b 0d 09 20 20 20 20 | 66 67 65 74 73 28 66 4c |0;.. |fgets(fL|
|00005640| 69 6e 65 42 75 66 66 65 | 72 2c 20 32 35 30 2c 20 |ineBuffe|r, 250, |
|00005650| 66 70 66 29 3b 09 09 2f | 2a 20 72 65 61 64 20 6e |fpf);../|* read n|
|00005660| 65 78 74 20 6c 69 6e 65 | 20 2a 2f 0d 09 09 0d 09 |ext line| */.....|
|00005670| 20 20 20 20 2f 2a 20 52 | 65 61 64 20 6f 70 74 69 | /* R|ead opti|
|00005680| 6f 6e 61 6c 20 66 69 6c | 65 20 74 79 70 65 20 73 |onal fil|e type s|
|00005690| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 2a 2f 0d |pecifica|tion */.|
|000056a0| 09 20 20 20 20 69 66 28 | 73 74 72 6e 63 6d 70 28 |. if(|strncmp(|
|000056b0| 66 4c 69 6e 65 42 75 66 | 66 65 72 2c 20 22 24 4d |fLineBuf|fer, "$M|
|000056c0| 22 2c 20 32 29 20 3d 3d | 20 30 29 20 7b 0d 23 69 |", 2) ==| 0) {.#i|
|000056d0| 66 64 65 66 20 4d 41 43 | 0d 09 09 20 20 20 20 73 |fdef MAC|... s|
|000056e0| 74 72 6e 63 70 79 28 28 | 63 68 61 72 20 2a 29 26 |trncpy((|char *)&|
|000056f0| 74 79 70 65 2c 26 66 4c | 69 6e 65 42 75 66 66 65 |type,&fL|ineBuffe|
|00005700| 72 5b 32 5d 2c 34 29 3b | 0d 09 09 20 20 20 20 73 |r[2],4);|... s|
|00005710| 74 72 6e 63 70 79 28 28 | 63 68 61 72 20 2a 29 26 |trncpy((|char *)&|
|00005720| 63 72 65 61 74 6f 72 2c | 26 66 4c 69 6e 65 42 75 |creator,|&fLineBu|
|00005730| 66 66 65 72 5b 36 5d 2c | 34 29 3b 0d 23 65 6e 64 |ffer[6],|4);.#end|
|00005740| 69 66 0d 09 20 20 20 20 | 09 66 4c 69 6e 65 42 75 |if.. |.fLineBu|
|00005750| 66 66 65 72 5b 30 5d 3d | 30 3b 0d 09 20 20 20 20 |ffer[0]=|0;.. |
|00005760| 09 66 67 65 74 73 28 66 | 4c 69 6e 65 42 75 66 66 |.fgets(f|LineBuff|
|00005770| 65 72 2c 20 32 35 30 2c | 20 66 70 66 29 3b 09 2f |er, 250,| fpf);./|
|00005780| 2a 20 72 65 61 64 20 6e | 65 78 74 20 6c 69 6e 65 |* read n|ext line|
|00005790| 20 2a 2f 0d 09 20 20 20 | 20 7d 0d 23 69 66 64 65 | */.. | }.#ifde|
|000057a0| 66 20 4d 41 43 0d 09 09 | 2f 2a 20 53 65 74 20 74 |f MAC...|/* Set t|
|000057b0| 68 65 20 6f 75 74 70 75 | 74 20 66 69 6c 65 27 73 |he outpu|t file's|
|000057c0| 20 4d 61 63 69 6e 74 6f | 73 68 20 74 79 70 65 20 | Macinto|sh type |
|000057d0| 61 6e 64 20 63 72 65 61 | 74 6f 72 2e 20 2a 2f 0d |and crea|tor. */.|
|000057e0| 09 09 47 65 74 56 6f 6c | 28 4e 55 4c 4c 2c 26 76 |..GetVol|(NULL,&v|
|000057f0| 52 65 66 4e 75 6d 29 3b | 0d 09 09 53 65 74 56 6f |RefNum);|...SetVo|
|00005800| 6c 28 4e 55 4c 4c 2c 6f | 75 74 70 75 74 56 52 65 |l(NULL,o|utputVRe|
|00005810| 66 4e 75 6d 29 3b 09 2f | 2a 20 6c 6f 6f 6b 20 69 |fNum);./|* look i|
|00005820| 6e 20 74 68 61 74 20 66 | 6f 6c 64 65 72 20 2a 2f |n that f|older */|
|00005830| 0d 09 09 53 65 74 46 69 | 6c 65 49 6e 66 6f 28 61 |...SetFi|leInfo(a|
|00005840| 72 67 76 5b 32 5d 2c 74 | 79 70 65 2c 63 72 65 61 |rgv[2],t|ype,crea|
|00005850| 74 6f 72 29 3b 0d 09 09 | 53 65 74 56 6f 6c 28 4e |tor);...|SetVol(N|
|00005860| 55 4c 4c 2c 76 52 65 66 | 4e 75 6d 29 3b 0d 23 65 |ULL,vRef|Num);.#e|
|00005870| 6e 64 69 66 0d 0d 09 20 | 20 20 20 2f 2a 20 52 65 |ndif... | /* Re|
|00005880| 61 64 20 6f 70 74 69 6f | 6e 61 6c 20 70 72 6f 6c |ad optio|nal prol|
|00005890| 6f 67 20 69 6e 74 6f 20 | 6f 75 74 70 75 74 20 66 |og into |output f|
|000058a0| 69 6c 65 20 2a 2f 0d 09 | 20 20 20 20 69 66 28 73 |ile */..| if(s|
|000058b0| 74 72 6e 63 6d 70 28 66 | 4c 69 6e 65 42 75 66 66 |trncmp(f|LineBuff|
|000058c0| 65 72 2c 20 22 24 50 22 | 2c 20 32 29 20 3d 3d 20 |er, "$P"|, 2) == |
|000058d0| 30 29 20 7b 0d 09 09 71 | 75 6f 74 65 20 3d 20 66 |0) {...q|uote = f|
|000058e0| 4c 69 6e 65 42 75 66 66 | 65 72 5b 32 5d 3b 09 09 |LineBuff|er[2];..|
|000058f0| 2f 2a 20 73 65 74 20 71 | 75 6f 74 65 20 63 68 61 |/* set q|uote cha|
|00005900| 72 20 66 6f 72 20 70 72 | 6f 6c 6f 67 20 2a 2f 0d |r for pr|olog */.|
|00005910| 09 09 62 70 74 72 20 3d | 20 26 66 4c 69 6e 65 42 |..bptr =| &fLineB|
|00005920| 75 66 66 65 72 5b 33 5d | 3b 0d 09 09 77 68 69 6c |uffer[3]|;...whil|
|00005930| 65 28 31 29 7b 0d 09 09 | 09 20 20 20 20 77 68 69 |e(1){...|. whi|
|00005940| 6c 65 28 28 28 63 20 3d | 20 2a 62 70 74 72 2b 2b |le(((c =| *bptr++|
|00005950| 29 20 21 3d 20 71 75 6f | 74 65 29 20 26 26 20 63 |) != quo|te) && c|
|00005960| 20 21 3d 20 27 5c 30 27 | 29 0d 09 09 09 09 70 75 | != '\0'|).....pu|
|00005970| 74 63 28 63 2c 20 66 70 | 6f 29 3b 0d 09 09 09 20 |tc(c, fp|o);.... |
|00005980| 20 20 20 69 66 28 63 20 | 3d 3d 20 71 75 6f 74 65 | if(c |== quote|
|00005990| 29 20 62 72 65 61 6b 3b | 0d 09 09 09 20 20 20 20 |) break;|.... |
|000059a0| 69 66 28 66 67 65 74 73 | 28 66 4c 69 6e 65 42 75 |if(fgets|(fLineBu|
|000059b0| 66 66 65 72 2c 20 32 35 | 30 2c 20 66 70 66 29 20 |ffer, 25|0, fpf) |
|000059c0| 3d 3d 20 4e 55 4c 4c 29 | 20 62 72 65 61 6b 3b 0d |== NULL)| break;.|
|000059d0| 09 09 09 20 20 20 20 62 | 70 74 72 20 3d 20 66 4c |... b|ptr = fL|
|000059e0| 69 6e 65 42 75 66 66 65 | 72 3b 0d 09 09 7d 0d 09 |ineBuffe|r;...}..|
|000059f0| 09 66 4c 69 6e 65 42 75 | 66 66 65 72 5b 30 5d 3d |.fLineBu|ffer[0]=|
|00005a00| 30 3b 0d 09 09 66 67 65 | 74 73 28 66 4c 69 6e 65 |0;...fge|ts(fLine|
|00005a10| 42 75 66 66 65 72 2c 20 | 32 35 30 2c 20 66 70 66 |Buffer, |250, fpf|
|00005a20| 29 3b 09 2f 2a 20 72 65 | 61 64 20 6e 65 78 74 20 |);./* re|ad next |
|00005a30| 6c 69 6e 65 20 2a 2f 0d | 09 20 20 20 20 7d 0d 09 |line */.|. }..|
|00005a40| 20 20 20 20 2f 2a 20 50 | 72 6f 6c 6f 67 20 64 6f | /* P|rolog do|
|00005a50| 6e 65 2c 20 62 75 74 20 | 6b 65 65 70 20 46 49 4c |ne, but |keep FIL|
|00005a60| 45 20 2a 66 70 66 20 6f | 70 65 6e 20 66 6f 72 20 |E *fpf o|pen for |
|00005a70| 65 70 69 6c 6f 67 20 61 | 74 20 74 68 65 20 65 6e |epilog a|t the en|
|00005a80| 64 20 2a 2f 0d 09 7d 20 | 65 6c 73 65 20 7b 0d 09 |d */..} |else {..|
|00005a90| 20 20 20 20 66 70 72 69 | 6e 74 66 28 73 74 64 65 | fpri|ntf(stde|
|00005aa0| 72 72 2c 20 22 43 61 6e | 27 74 20 6f 70 65 6e 20 |rr, "Can|'t open |
|00005ab0| 63 6f 6e 76 65 72 73 69 | 6f 6e 20 66 6f 72 6d 61 |conversi|on forma|
|00005ac0| 74 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |t specif|ication |
|00005ad0| 66 69 6c 65 20 5c 22 25 | 73 5c 22 2e 5c 6e 22 2c |file \"%|s\".\n",|
|00005ae0| 0d 09 09 09 09 66 6d 74 | 66 69 6c 65 29 3b 0d 23 |.....fmt|file);.#|
|00005af0| 69 66 64 65 66 20 4d 41 | 43 0d 09 09 70 72 69 6e |ifdef MA|C...prin|
|00005b00| 74 66 28 22 43 6c 69 63 | 6b 20 74 68 69 73 20 77 |tf("Clic|k this w|
|00005b10| 69 6e 64 6f 77 20 74 6f | 20 65 78 69 74 3a 5c 6e |indow to| exit:\n|
|00005b20| 22 29 3b 0d 09 09 46 6c | 75 73 68 45 76 65 6e 74 |");...Fl|ushEvent|
|00005b30| 73 28 65 76 65 72 79 45 | 76 65 6e 74 2c 30 29 3b |s(everyE|vent,0);|
|00005b40| 0d 09 09 77 68 69 6c 65 | 28 21 47 65 74 4e 65 78 |...while|(!GetNex|
|00005b50| 74 45 76 65 6e 74 28 65 | 76 65 72 79 45 76 65 6e |tEvent(e|veryEven|
|00005b60| 74 2c 26 65 76 65 6e 74 | 29 29 20 3b 0d 23 65 6e |t,&event|)) ;.#en|
|00005b70| 64 69 66 0d 09 20 20 20 | 20 65 78 69 74 28 31 29 |dif.. | exit(1)|
|00005b80| 3b 0d 09 7d 0d 0d 0d 09 | 2f 2a 20 54 68 65 20 70 |;..}....|/* The p|
|00005b90| 72 6f 67 72 61 6d 20 72 | 65 6c 69 65 73 20 6f 6e |rogram r|elies on|
|00005ba0| 20 74 68 65 20 70 72 65 | 73 65 6e 63 65 20 6f 66 | the pre|sence of|
|00005bb0| 20 22 2d 2d 2d 2d 2d 2d | 22 20 74 6f 20 69 6e 64 | "------|" to ind|
|00005bc0| 69 63 61 74 65 20 74 68 | 65 0d 09 20 2a 20 73 74 |icate th|e.. * st|
|00005bd0| 61 72 74 20 6f 66 20 72 | 65 63 6f 72 64 73 2e 20 |art of r|ecords. |
|00005be0| 20 54 68 69 73 20 63 6f | 75 6c 64 20 62 65 20 61 | This co|uld be a|
|00005bf0| 20 62 61 64 20 74 68 69 | 6e 67 20 74 6f 20 72 65 | bad thi|ng to re|
|00005c00| 6c 79 20 6f 6e 2e 0d 09 | 20 2a 2f 0d 09 77 68 69 |ly on...| */..whi|
|00005c10| 6c 65 28 20 28 20 66 67 | 65 74 73 28 6c 69 6e 65 |le( ( fg|ets(line|
|00005c20| 62 75 66 2c 20 32 35 30 | 2c 20 66 70 69 29 20 29 |buf, 250|, fpi) )|
|00005c30| 20 21 3d 20 4e 55 4c 4c | 20 29 20 7b 0d 09 20 20 | != NULL| ) {.. |
|00005c40| 20 20 6c 69 6e 65 63 6e | 74 2b 2b 3b 0d 09 20 20 | linecn|t++;.. |
|00005c50| 20 20 69 66 28 73 74 72 | 6e 63 6d 70 28 6c 69 6e | if(str|ncmp(lin|
|00005c60| 65 62 75 66 2c 20 22 2d | 2d 2d 2d 2d 22 2c 20 35 |ebuf, "-|----", 5|
|00005c70| 29 20 3d 3d 20 30 29 0d | 09 09 62 72 65 61 6b 3b |) == 0).|..break;|
|00005c80| 09 09 2f 2a 20 73 74 61 | 72 74 20 6f 66 20 72 65 |../* sta|rt of re|
|00005c90| 63 6f 72 64 73 20 64 65 | 74 65 63 74 65 64 20 2a |cords de|tected *|
|00005ca0| 2f 0d 09 7d 0d 0d 09 2f | 2a 20 2d 2d 2d 2d 20 52 |/..}.../|* ---- R|
|00005cb0| 65 61 64 20 61 20 6c 69 | 6e 65 20 61 6e 64 20 73 |ead a li|ne and s|
|00005cc0| 65 70 61 72 61 74 65 20 | 63 6f 6d 70 6f 6e 65 6e |eparate |componen|
|00005cd0| 74 73 20 69 6e 74 6f 20 | 70 72 6f 70 65 72 20 70 |ts into |proper p|
|00005ce0| 6c 61 63 65 73 20 2d 2d | 2d 2d 2d 2d 20 2a 2f 0d |laces --|---- */.|
|00005cf0| 09 77 68 69 6c 65 28 28 | 66 67 65 74 73 28 6c 69 |.while((|fgets(li|
|00005d00| 6e 65 62 75 66 2c 20 32 | 35 30 2c 20 66 70 69 29 |nebuf, 2|50, fpi)|
|00005d10| 29 20 21 3d 20 4e 55 4c | 4c 29 20 7b 0d 09 20 20 |) != NUL|L) {.. |
|00005d20| 20 20 6c 69 6e 65 63 6e | 74 2b 2b 3b 0d 09 20 20 | linecn|t++;.. |
|00005d30| 20 20 63 68 61 72 63 6e | 74 20 3d 20 73 74 72 6c | charcn|t = strl|
|00005d40| 65 6e 28 6c 69 6e 65 62 | 75 66 29 3b 0d 09 20 20 |en(lineb|uf);.. |
|00005d50| 20 20 69 66 28 6c 69 6e | 65 62 75 66 5b 30 5d 20 | if(lin|ebuf[0] |
|00005d60| 3d 3d 20 27 23 27 20 7c | 7c 20 6c 69 6e 65 62 75 |== '#' ||| linebu|
|00005d70| 66 5b 30 5d 20 3d 3d 20 | 27 3b 27 20 7c 7c 20 63 |f[0] == |';' || c|
|00005d80| 68 61 72 63 6e 74 20 3d | 3d 20 30 29 0d 09 09 63 |harcnt =|= 0)...c|
|00005d90| 6f 6e 74 69 6e 75 65 3b | 09 2f 2a 20 62 6c 61 6e |ontinue;|./* blan|
|00005da0| 6b 20 6f 72 20 63 6f 6d | 6d 65 6e 74 20 6c 69 6e |k or com|ment lin|
|00005db0| 65 73 20 2a 2f 0d 09 20 | 20 20 20 69 66 28 73 74 |es */.. | if(st|
|00005dc0| 72 6e 63 6d 70 28 6c 69 | 6e 65 62 75 66 2c 20 22 |rncmp(li|nebuf, "|
|00005dd0| 2d 2d 2d 2d 2d 22 2c 20 | 35 29 20 3d 3d 20 30 29 |-----", |5) == 0)|
|00005de0| 0d 09 09 62 72 65 61 6b | 3b 09 09 2f 2a 20 65 6e |...break|;../* en|
|00005df0| 64 20 6f 66 20 72 65 63 | 6f 72 64 73 20 64 65 74 |d of rec|ords det|
|00005e00| 65 63 74 65 64 20 2a 2f | 0d 09 20 20 20 20 69 66 |ected */|.. if|
|00005e10| 28 63 68 61 72 63 6e 74 | 20 3c 20 35 29 20 7b 0d |(charcnt| < 5) {.|
|00005e20| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00005e30| 2c 22 25 63 22 2c 20 6c | 69 6e 65 62 75 66 5b 30 |,"%c", l|inebuf[0|
|00005e40| 5d 29 3b 20 66 66 6c 75 | 73 68 28 73 74 64 65 72 |]); fflu|sh(stder|
|00005e50| 72 29 3b 0d 09 09 63 6f | 6e 74 69 6e 75 65 3b 09 |r);...co|ntinue;.|
|00005e60| 2f 2a 20 6d 75 73 74 20 | 62 65 20 41 41 41 2c 20 |/* must |be AAA, |
|00005e70| 42 42 42 2c 20 2e 2e 2e | 20 2a 2f 0d 09 20 20 20 |BBB, ...| */.. |
|00005e80| 20 7d 0d 0d 09 20 20 20 | 20 2f 2a 20 43 6c 65 61 | }... | /* Clea|
|00005e90| 72 20 61 6c 6c 20 73 74 | 6f 72 61 67 65 20 61 72 |r all st|orage ar|
|00005ea0| 72 61 79 73 2e 20 2a 2f | 0d 09 20 20 20 20 6c 61 |rays. */|.. la|
|00005eb0| 73 74 6e 61 6d 65 5b 30 | 5d 20 3d 20 66 69 72 73 |stname[0|] = firs|
|00005ec0| 74 69 6e 69 5b 30 5d 20 | 3d 20 61 66 66 69 6c 69 |tini[0] |= affili|
|00005ed0| 61 74 69 6f 6e 5b 30 5d | 20 3d 20 65 6d 61 64 64 |ation[0]| = emadd|
|00005ee0| 72 65 73 73 5b 30 5d 20 | 3d 20 27 5c 30 27 3b 0d |ress[0] |= '\0';.|
|00005ef0| 0d 09 20 20 20 20 72 65 | 63 6f 72 64 63 6e 74 2b |.. re|cordcnt+|
|00005f00| 2b 3b 09 2f 2a 20 6f 6e | 6c 79 20 63 6f 75 6e 74 |+;./* on|ly count|
|00005f10| 20 72 65 61 6c 20 61 64 | 64 72 65 73 73 20 72 65 | real ad|dress re|
|00005f20| 63 6f 72 64 20 2a 2f 0d | 09 20 20 20 20 2f 2a 20 |cord */.|. /* |
|00005f30| 57 65 27 76 65 20 67 6f | 74 20 61 20 72 65 61 73 |We've go|t a reas|
|00005f40| 6f 6e 61 62 6c 65 20 6c | 69 6e 65 2e 20 20 46 69 |onable l|ine. Fi|
|00005f50| 72 73 74 2c 20 67 65 74 | 20 74 68 65 20 6c 61 73 |rst, get| the las|
|00005f60| 74 6e 61 6d 65 20 2a 2f | 0d 09 20 20 20 20 66 69 |tname */|.. fi|
|00005f70| 6e 64 65 78 28 6c 69 6e | 65 62 75 66 2c 20 27 2c |ndex(lin|ebuf, ',|
|00005f80| 27 29 3b 09 09 2f 2a 20 | 63 68 65 63 6b 20 69 66 |');../* |check if|
|00005f90| 20 61 20 63 6f 6d 6d 61 | 20 69 73 20 70 72 65 73 | a comma| is pres|
|00005fa0| 65 6e 74 20 2a 2f 0d 09 | 20 20 20 20 73 73 63 61 |ent */..| ssca|
|00005fb0| 6e 66 28 6c 69 6e 65 62 | 75 66 2c 20 22 25 5b 5e |nf(lineb|uf, "%[^|
|00005fc0| 2c 5d 22 2c 20 6c 61 73 | 74 6e 61 6d 65 29 3b 09 |,]", las|tname);.|
|00005fd0| 2f 2a 20 72 65 61 64 20 | 74 6f 20 62 65 66 6f 72 |/* read |to befor|
|00005fe0| 65 20 63 6f 6d 6d 61 20 | 2a 2f 0d 0d 09 20 20 20 |e comma |*/... |
|00005ff0| 20 2f 2a 20 47 65 74 20 | 74 68 65 20 66 69 72 73 | /* Get |the firs|
|00006000| 74 6e 61 6d 65 20 70 6c | 75 73 20 69 6e 69 74 69 |tname pl|us initi|
|00006010| 61 6c 20 2a 2f 0d 09 20 | 20 20 20 73 74 72 6e 63 |al */.. | strnc|
|00006020| 70 79 28 74 6d 70 62 75 | 66 2c 20 6c 69 6e 65 62 |py(tmpbu|f, lineb|
|00006030| 75 66 2c 20 32 35 30 29 | 3b 0d 09 20 20 20 20 62 |uf, 250)|;.. b|
|00006040| 70 74 72 20 3d 20 66 69 | 6e 64 65 78 28 74 6d 70 |ptr = fi|ndex(tmp|
|00006050| 62 75 66 2c 20 27 2c 27 | 29 3b 0d 09 20 20 20 20 |buf, ','|);.. |
|00006060| 77 68 69 6c 65 28 28 63 | 20 3d 20 2a 2b 2b 62 70 |while((c| = *++bp|
|00006070| 74 72 29 20 3d 3d 20 27 | 20 27 20 7c 7c 20 63 20 |tr) == '| ' || c |
|00006080| 3d 3d 20 27 5c 74 27 29 | 20 3b 09 2f 2a 20 6e 6f |== '\t')| ;./* no|
|00006090| 6e 2d 73 70 61 63 65 20 | 61 66 74 65 72 20 63 6f |n-space |after co|
|000060a0| 6d 6d 61 20 2a 2f 0d 09 | 20 20 20 20 65 70 74 72 |mma */..| eptr|
|000060b0| 20 3d 20 66 69 6e 64 65 | 78 28 74 6d 70 62 75 66 | = finde|x(tmpbuf|
|000060c0| 2c 20 27 28 27 29 3b 0d | 09 20 20 20 20 77 68 69 |, '(');.|. whi|
|000060d0| 6c 65 28 28 63 20 3d 20 | 2a 2d 2d 65 70 74 72 29 |le((c = |*--eptr)|
|000060e0| 20 3d 3d 20 27 20 27 20 | 7c 7c 20 63 20 3d 3d 20 | == ' ' ||| c == |
|000060f0| 27 5c 74 27 29 20 3b 09 | 2f 2a 20 6e 6f 6e 2d 73 |'\t') ;.|/* non-s|
|00006100| 70 61 63 65 20 62 65 66 | 6f 72 65 20 27 28 27 20 |pace bef|ore '(' |
|00006110| 2a 2f 0d 09 20 20 20 20 | 69 66 28 65 70 74 72 20 |*/.. |if(eptr |
|00006120| 3e 3d 20 62 70 74 72 29 | 20 7b 0d 09 09 65 70 74 |>= bptr)| {...ept|
|00006130| 72 2b 2b 3b 20 2a 65 70 | 74 72 20 3d 20 27 5c 30 |r++; *ep|tr = '\0|
|00006140| 27 3b 09 09 2f 2a 20 6d | 61 6b 65 20 73 75 72 65 |';../* m|ake sure|
|00006150| 20 74 68 65 72 65 20 69 | 73 20 66 69 72 73 74 6e | there i|s firstn|
|00006160| 61 6d 65 20 70 61 72 74 | 20 2a 2f 0d 09 09 73 74 |ame part| */...st|
|00006170| 72 6e 63 70 79 28 66 69 | 72 73 74 69 6e 69 2c 20 |rncpy(fi|rstini, |
|00006180| 62 70 74 72 2c 20 36 30 | 29 3b 0d 09 20 20 20 20 |bptr, 60|);.. |
|00006190| 7d 20 65 6c 73 65 0d 09 | 09 73 74 72 63 70 79 28 |} else..|.strcpy(|
|000061a0| 66 69 72 73 74 69 6e 69 | 2c 20 22 22 29 3b 09 09 |firstini|, "");..|
|000061b0| 2f 2a 20 6e 6f 20 66 69 | 72 73 74 6e 61 6d 65 2f |/* no fi|rstname/|
|000061c0| 69 6e 69 74 69 61 6c 20 | 2a 2f 0d 0d 09 20 20 20 |initial |*/... |
|000061d0| 20 2f 2a 20 47 65 74 20 | 69 6e 73 74 69 74 75 74 | /* Get |institut|
|000061e0| 69 6f 6e 61 6c 20 61 66 | 66 69 6c 69 63 61 74 69 |ional af|filicati|
|000061f0| 6f 6e 20 65 6e 63 6c 6f | 73 65 64 20 69 6e 20 62 |on enclo|sed in b|
|00006200| 72 61 63 6b 65 74 20 2a | 2f 0d 09 20 20 20 20 73 |racket *|/.. s|
|00006210| 74 72 6e 63 70 79 28 74 | 6d 70 62 75 66 2c 20 6c |trncpy(t|mpbuf, l|
|00006220| 69 6e 65 62 75 66 2c 20 | 32 35 30 29 3b 0d 09 20 |inebuf, |250);.. |
|00006230| 20 20 20 62 70 74 72 20 | 3d 20 66 69 6e 64 65 78 | bptr |= findex|
|00006240| 28 74 6d 70 62 75 66 2c | 20 27 28 27 29 3b 0d 09 |(tmpbuf,| '(');..|
|00006250| 20 20 20 20 65 70 74 72 | 20 3d 20 66 69 6e 64 65 | eptr| = finde|
|00006260| 78 28 74 6d 70 62 75 66 | 2c 20 27 29 27 29 3b 0d |x(tmpbuf|, ')');.|
|00006270| 09 20 20 20 20 62 70 74 | 72 2b 2b 3b 09 09 2f 2a |. bpt|r++;../*|
|00006280| 20 63 68 61 72 20 61 66 | 74 65 72 20 27 28 27 20 | char af|ter '(' |
|00006290| 2a 2f 0d 09 20 20 20 20 | 2a 65 70 74 72 20 3d 20 |*/.. |*eptr = |
|000062a0| 27 5c 30 27 3b 09 2f 2a | 20 74 65 72 6d 69 6e 61 |'\0';./*| termina|
|000062b0| 74 65 20 73 74 72 69 6e | 67 20 61 74 20 27 29 27 |te strin|g at ')'|
|000062c0| 20 2a 2f 0d 09 20 20 20 | 20 73 74 72 6e 63 70 79 | */.. | strncpy|
|000062d0| 28 61 66 66 69 6c 69 61 | 74 69 6f 6e 2c 20 62 70 |(affilia|tion, bp|
|000062e0| 74 72 2c 20 36 30 29 3b | 0d 0d 09 20 20 20 20 2f |tr, 60);|... /|
|000062f0| 2a 20 47 65 74 20 28 31 | 2d 73 74 20 70 61 72 74 |* Get (1|-st part|
|00006300| 20 6f 66 29 20 45 2d 6d | 61 69 6c 20 61 64 64 72 | of) E-m|ail addr|
|00006310| 65 73 73 2e 20 20 49 74 | 20 73 68 6f 75 6c 64 20 |ess. It| should |
|00006320| 61 6c 73 6f 20 77 6f 72 | 6b 0d 09 20 20 20 20 20 |also wor|k.. |
|00006330| 20 20 65 76 65 6e 20 69 | 66 20 74 68 65 20 65 2d | even i|f the e-|
|00006340| 6d 61 69 6c 20 61 64 64 | 72 65 73 73 20 69 73 20 |mail add|ress is |
|00006350| 65 6e 74 69 72 65 6c 79 | 20 6f 6e 20 74 68 65 20 |entirely| on the |
|00006360| 63 6f 6e 74 69 6e 75 61 | 74 69 6f 6e 0d 09 20 20 |continua|tion.. |
|00006370| 20 20 20 20 20 6c 69 6e | 65 20 61 6e 64 20 74 68 | lin|e and th|
|00006380| 65 72 65 20 69 73 20 6e | 6f 74 68 69 6e 67 20 61 |ere is n|othing a|
|00006390| 66 74 65 72 20 74 68 65 | 20 63 6c 6f 73 69 6e 67 |fter the| closing|
|000063a0| 20 62 72 61 63 6b 65 74 | 2e 0d 09 20 20 20 20 20 | bracket|... |
|000063b0| 2a 2f 0d 09 20 20 20 20 | 65 70 74 72 2b 2b 3b 09 |*/.. |eptr++;.|
|000063c0| 2f 2a 20 65 70 74 72 20 | 70 6f 69 6e 74 69 6e 67 |/* eptr |pointing|
|000063d0| 20 74 6f 20 74 6d 70 62 | 75 66 20 69 73 20 73 74 | to tmpb|uf is st|
|000063e0| 69 6c 6c 20 67 6f 6f 64 | 20 2a 2f 0d 09 20 20 20 |ill good| */.. |
|000063f0| 20 73 73 63 61 6e 66 28 | 65 70 74 72 2c 20 22 25 | sscanf(|eptr, "%|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.